찾으시는 취미가 있나요?

import pyupbit market_price = pyupbit.get_ohlcv("KRW-ETH", interval="minute1") print(market_price.resample('2T')) ------------------------------------------------------------------------------------- DatetimeIndexResampler [freq=<2 * Minutes>, axis=0, closed=left, label=left, convention=start, origin=start_day] 에러가 나서, 찾아보니까 Starting from 0.18.0, resample itself is a deferred operation, meaning that you first have to call a method (in this case mean()) to perform the actual resampling: 판다스 버전이 높아서 난 에러인것 같습니다. import pandas as pd print( pd. __version__ ) ------------------------------------ 1.1.3 market_price.resample('2T').mean() 로 수정하니까 정상 출력이 됩니다. 참고하세요~ https://stackoverflow.com/questions/37723906/pandas-resample-does-not-work-properly
♡9
0

댓글0

클래스101은 모든 사람이 사랑하는 일을 하며
살 수 있도록 세상을 바꾸고자 합니다.
크리에이터
정규 클래스 지원하기
도움말
고객센터
오전 10시 ~ 오후 6시 (주말, 공휴일 제외)
주식회사 클래스101 | 대표 공대선 | 서울특별시 강남구 테헤란로 415, 4층(삼성동, 엘7강남타워) | ask@101.inc | 전화번호: 1800-2109 | 클라우드 호스팅: Amazon Web Services Korea LLC | 사업자등록번호 : 457-81-00277 | 통신판매업신고 : 2022-서울강남-02525 | 클래스101은 통신판매중개자로서 중개하는 거래에 대하여 책임을 부담하지 않습니다.