在使用python时,直接使用
a = pd.Series()
创建series时会报错
DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning. after removing the cwd from sys.path.
修改为如下即可
a = pd.Series([], dtype='float64')