I have written this code:
df.loc[df['Profile Name'] == 'karladdo201', 'Duration'].astype('timedelta64[s]').sum()
and get this value:
Timedelta('8 days 12:02:45')
How do I get a values similar or in this format ?: 4138000.0
from writing this code:
viewTime = {}
viewTime.update({"karladdo201": df.loc[df['Profile Name']=='karladdo201','Duration'].astype('timedelta64[s]').sum()})
viewTime
They all come from a dataframe of my Netflix viewing history. I am using jupyter lab