You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#13218 #13933
With regard to the above issues, I have the same problem. I need to convert 1 hour to monthly data, the requirement is that I need to set the beginning time interval to 17:00.
ohlc_dict = {'open':'first', 'high':'max', 'low':'min', 'close': 'last'} df = df.resample('1M', loffset='17H',closed='left',label='left').agg(ohlc_dict)
I specified the time by loffset='17H' already, it just changed time label to 17:00, but it still took the Open Price from 00:00 instead of 17:00. What can I do to the get open price at 17:00 instead of 00:00? Thanks.
The text was updated successfully, but these errors were encountered:
yomoko
changed the title
I can't convert 1H OHLC data into monthly data with a specific time using Python
I can't convert 1H OHLC data into monthly data with a specific time by loffset
Jan 27, 2018
#13218
#13933
With regard to the above issues, I have the same problem. I need to convert 1 hour to monthly data, the requirement is that I need to set the beginning time interval to 17:00.
ohlc_dict = {'open':'first', 'high':'max', 'low':'min', 'close': 'last'}
df = df.resample('1M', loffset='17H',closed='left',label='left').agg(ohlc_dict)
I specified the time by
loffset='17H
' already, it just changed time label to 17:00, but it still took the Open Price from 00:00 instead of 17:00. What can I do to the get open price at 17:00 instead of 00:00? Thanks.The text was updated successfully, but these errors were encountered: