熊猫阅读日期,忽略年度总数

时间:2019-09-26 15:37:11

标签: pandas date

我想知道是否有特殊功能来读取这种日期:

enter image description here

我目前正在做的是

x = x[~x.Date.astype(str).str.isdigit()].copy() x.Date = pd.date_range(start='02-2017', end='06-2019', freq='MS')

如果您有更好的方法,请告诉我

0 个答案:

没有答案
相关问题