Micro-sheep / Micro-sheep/efinance

incompatible with TypeError for dict_values as integer

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.1k
Forks
755
PR merge metrics
No merged PRs in 30d

Description

There is an issue caused by lower versions of Python (<=3.6.10) and/or Pandas.
![efinance-error-202208](https://user-images.githubusercontent.com/3952856/187011492-7bcf520c-ced0-4be6-9f1e-85cc53e6e9ae.PNG)

Codes can still be run as expected if some of these functions removed as illustrated in the attached file.

s = pd.Series(json_response['Datas']).rename(index=columns)[columns.values()]
-->
s = pd.Series(json_response['Datas']).rename(index=columns)

is it necessary to do some compatible remedies for old versions?

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is identified in the issue. Start by reproducing the reported TypeError with the shown pandas Series expression under the affected Python and pandas versions, then identify the project entry point containing this code. Done means the relevant functions work without the error while preserving the expected Series behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.