用pandas中的DataFrame时选取行或列:
import numpy as np
import pandas as pd
from pandas import Sereis, DataFrame
ser = Series(np.arange(3.))
data = DataFrame(np.arange(16).reshape(4,4),index=list('abcd'),columns=list('wxyz'))
data['w'] #选择表格中的'w'列,使用类字典属性,返回的是
第一种方法: 代码如下:select *from ( select Url,case when Month=01 then ‘1月’ when Month=02 then ‘2月’ when Month=03 then ‘3月’ when Month=04 then ‘4月’ when Month=05 then ‘5月’ when Month=06 then ‘6月’ when Month=07 then ‘7月’ when Month=08 then ‘8月’ wh
用pandas中的DataFrame时选取行或列:
import numpy as np
import pandas as pd
from pandas import Sereis, DataFrame
ser = Series(np.arange(3.))
data = DataFrame(np.arange(16).reshape(4,4),index=list('abcd'),columns=list('wxyz'))
data['w'] #选择表格中的'w'列,使用类字典属性,返回的是