Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyupbit
- df = pyupbit.get_ohlcv("KRW-XRP", "minute60")
- how = {'open': 'first', 'high': 'max', 'low': 'min', 'close': 'last',
- 'volume': 'sum'}
- df = df.resample('D').apply(how)
- print(df)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement