Closed AnhCaooo closed 1 month ago
Cám ơn @AnhCaooo đã báo lỗi. Mình đã kiểm tra và lỗi này chỉ xuất hiện với phiên bản Python trên Google Colab trong khi vẫn hoạt động bình thường với môi trường cục bộ, bản python 3.10rc2. Mình sẽ cập nhật lỗi này trong thời gian sớm nhất.
Lỗi này đã được mình bổ sung cơ chế xử lý trong phiên bản 0.3.0.6. Mình đóng ticket tại đây.
Hi, bạn kiểm tra dùm, mình không trích xuất được lịch sử giá trong phiên bản python 3.12 khi dùng lệnh stock.quote.history(symbol=stock_symbol, start=start_date, end=end_date, interval='1d'). Cám ơn bạn
Mô tả lỗi Gọi hàm tock.quote.history và truyền parameter 'interval="1M"' không hoạt động
Cách tái hiện lại lỗi để xử lý Các bước để tái hiện sự cố:
KeyError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/pandas/_libs/tslibs/offsets.pyx in pandas._libs.tslibs.offsets._get_offset()
KeyError: 'ME'
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last) 11 frames ValueError: Invalid frequency: ME
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/pandas/_libs/tslibs/offsets.pyx in pandas._libs.tslibs.offsets.to_offset()
ValueError: Invalid frequency: ME