Feb-20-2021, 02:14 PM
(This post was last modified: Feb-20-2021, 02:14 PM by ju21878436312.)
I would like to combine data from 2 columns
The file "minimal_in.csv" is the following:
The file "minimal_in.csv" is the following:
Year,Time 29.01.2001,13:31:24 29.01.2001,13:31:27 29.01.2001,13:31:29 29.01.2001,13:31:32 29.01.2001,13:31:34I have first tried:
import pandas as pd
from datetime import datetime, timedelta
import pandas as pd
df = pd.read_csv('minimal_in.csv')
df.head(5)
df[['Year','Time']].apply(pd.to_datetime)
df.dtypesor alternatively:df_combine = df['Year','Time'] pd.to_datetime(df_combine)Has someone an idea? I would be very grateful
