df['tick'] = np.where(df.Length < .05, df.index, pd.tslib.NaT)AttributeError:模块‘大熊猫’没有属性' tslib‘当我运行这个属性时,它向我展示了大熊猫tslib是找不到的,我如何解决它?
发布于 2021-09-01 09:54:16
你必须使用pd.NaT
df['tick'] = np.where(df.Length < .05, df.index, pd.NaT)正如这 GitHub线程中提到的那样:
FutureWarning: pandas.tslib is deprecated and will be removed in a future version.
所以它现在被移除了,而且是无法访问的。
https://stackoverflow.com/questions/69011496
复制相似问题