I have dataframe with two columns time
and dic
in dic
column i want to drop 1:00
and 4:00
. how to do that with pandas
import pandas as pd
dic={'time':[1685660515,1685689306],
'dic':[{"0:00":"2", "1:00":"1","2:00":"0","4:00":"0"},
{"0:00": "0", "1:00": "0", "2:00":"3","4:00":"0" }]}
df= pd.DataFrame(dic)
time | dic |
---|---|
1685660515 | "0:00": "2", "1:00": "1", "2:00": "0","4:00":"0" |
1685689306 | "0:00": "0", "1:00": "0", "2:00":3","4:00":"0" |