Oct-28-2019, 12:21 PM
(Oct-28-2019, 10:55 AM)snippsat Wrote:>>> import pandas as pd >>> df = pd.DataFrame({0: ['09.05.2017 13:56', '1494331179', '1494331625', '09.05.2017 14:11', '944006550', '03.07.2017 16:50'],1: range(6)}) >>> pd.to_datetime(df[0], format='%d.%m.%Y %H:%M', errors='coerce') 0 2017-05-09 13:56:00 1 NaT 2 NaT 3 2017-05-09 14:11:00 4 NaT 5 2017-07-03 16:50:00 Name: 0, dtype: datetime64[ns]You are missing %H:
%M
Thks ... sometimes I think the mistake is too big without taking the time to analyze my code. sorry about that.