I want to DataFrame.apply()
dateutil.parser.parse
to a pandas dataframe column of date strings, but some cells are NaN
, so it raises an exception. What is the pandastyle way to deal with this?
Should I write another function replacing parse()
to handle the errors and apply that instead? Deal with it some other way?