찾으시는 취미가 있나요?

클래스 스토리3417개의 글

인기순최신순
크리에이터가 고정함
Classmate576659e
5/18/2021
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
Pystock Cho
크리에이터
5/18/2021
Thank you. I'll keep the comments fixed :D
원본 보기
크리에이터가 고정함
Classmate949137p
5/5/2021
It's a rudimentary question, but I used the parent parameter in MyWidgetSet, which inherited QWidget, when do I use it? I wonder why it's like that to hand over the parent when resetting. When do I use the parent parameter and hand it over to initialization??
7
원본 보기
Pystock Cho
크리에이터
5/5/2021
Let me think of it as QPushButton. When simply creating and outputting widgets, you can simply create them and print them out on the screen as shown below. app = QApplication([]) w = QPushButton() w.show() app.exec_() Complex programs require multiple widgets to be placed in the main window. When the widget was printed out on top of Windows instead of alone, it had to be used as follows in the initializer, right? class MyWindow(QMainWindow): def __init__(self): w = QPushButton(self) self specifies where to output the widget. The current initializer is in the state of being called while creating MyWindow. At this point, self means the instance/object/object that is created. The QPushButton class allows you to specify where to output a single parameter by making it possible to receive input. When calling only the top widget, it should work without entering any values.
원본 보기
Pystock Cho
크리에이터
5/5/2021
Now let's look at the custom widget. The class I created should also be able to be printed out on the main window or used alone. The following code is set to None if no parent is entered and output alone; if a value is entered, output is made to the specified location. class MyWidgetSet(QWidget): def __init__(self, parent=None): # Omit It can be used alone without any parameters like this way. app = QApplication([]) m = MyWidgetSet() m.show() app.exec_() It can also be used within the main window in complex cases. At this time, you must specify where to print it. class MyWindow(QMainWindow): def __init__(self): super().__init__() w = MyWidgetSet(self)
원본 보기
크리에이터가 고정함
code_gun
5/1/2021
MacOS users: (1). "Applications" -> (2). "Anaconda-Navigators" -> (3). Right-click and click "Show Original" -> (4). Click on the "bin" folder -> (5). Click "Designer" and use it.
7
원본 보기
Pystock Cho
크리에이터
5/1/2021
I missed the description of the Mac. Thank you.
원본 보기
크리에이터가 고정함
classmate
5/9/2021
It would be nice to explain where and how to download and install Pyupbit.
4
원본 보기
로그인하면
더 많은 실제 후기를 만날 수 있어요!
클래스101은 모든 사람이 사랑하는 일을 하며
살 수 있도록 세상을 바꾸고자 합니다.
크리에이터
정규 클래스 지원하기
도움말
고객센터
오전 10시 ~ 오후 6시 (주말, 공휴일 제외)
주식회사 클래스101 | 대표 공대선 | 서울특별시 강남구 테헤란로 415, 4층(삼성동, 엘7강남타워) | ask@101.inc | 전화번호: 1800-2109 | 클라우드 호스팅: Amazon Web Services Korea LLC | 사업자등록번호 : 457-81-00277 | 통신판매업신고 : 2022-서울강남-02525 | 클래스101은 통신판매중개자로서 중개하는 거래에 대하여 책임을 부담하지 않습니다.