it looks like this:
Dates N-D unit
0 1/1/2016 Q1 UD
1 Q2 UD
2 Q3 UD
3 2/1/2016 Q4 UD
4 5/1/2016 Q5 UD
5 Q6 UD
I want to filter out empty Dates lines and save it in dataframe blankDate:
Dates N-D unit
1 Q2 UD
2 Q3 UD
5 Q6 UD
blankDate=df1[df1['Dates']== '']
df1['Discharge Date'] = pd.to_datetime(df1['Discharge Date'])
If the column is a row, this piece of code works, it also works with numbers that I count
blankDate=df1[df1['stringcolumn']== '']
but how can I compare with empty date strings?
source
share