pandas - Format the result when converting python timedelta type to datetime.time type -


in dataframe, column in timedelta type. type not supported when writing sql using sqlalchemy. want change type time doing:

df['time'] = df['time'].astype(datetime.time) 

however, got result of: "0 days 09:30:00". how can drop "0 days" , display "09:30:00"?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -