在与熊猫的专栏中完成Nat

时间:2018-07-13 15:59:50

标签: python pandas datetime

假设我有一列显示日期

DoCmd.OutputTo acOutputReport, "reportname", acFormatPDF, _
               "path" & rptReportName & "_" & rptReportCode & ".pdf"

我要根据上一行完成import pandas as pd import numpy as np dates = np.asanyarray(['2000-01-29','2000-01-29',np.nan,np.nan,'2000-02-05',np.nan]) dates = pd.to_datetime(dates) df = pd.DataFrame(dates) Out: 0 0 2000-01-29 1 2000-01-29 2 NaT 3 NaT 4 2000-02-05 5 NaT

NaT

我该怎么做?

0 个答案:

没有答案