I have a dataframe df
and its first column is timedelta64
df.info():
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 686 entries, 0 to 685
Data columns (total 6 columns):
0 686 non-null timedelta64[ns]
1 686 non-null object
2 686 non-null object
3 686 non-null object
4 686 non-null object
5 686 non-null object
If I print(df[0][2])
, for example, it will give me 0 days 05:01:11
. However, I don't want the 0 days
filed. I only want 05:01:11
to be printed. Could someone teaches me how to do this? Thanks so much!