I'm trying to get the data every 4 hours from the dataframe using .loc. But its giving me ValueError
from it
df.loc[(df['time'].dt.hour in [0, 4, 8, 12, 16, 20]), 'EURUSD_Open']
I would be grateful for some help
I'm trying to get the data every 4 hours from the dataframe using .loc. But its giving me ValueError
from it
df.loc[(df['time'].dt.hour in [0, 4, 8, 12, 16, 20]), 'EURUSD_Open']
I would be grateful for some help