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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -