在熊猫中打开xlsx文件时遇到问题。 我尝试将列连接如下:
path='testdata.xlsx'
df=pd.read_excel(path, decimal=',')
df=df.dropna(how='any',axis=0,inplace=False)
(df)
print(df.dtypes)
df['code'].astype(object).astype(int)
df['test']='test'
df['test3']=df['test']+df['name']
但是我得到以下异常:
Unable to open 'util.pxd': File not found (file:///c:/users/wojciech/desktop/python_labs/pandas/src/util.pxd)
当我打开.xls文件时,没有问题。