Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Market Activity report particulary parsed #55

Merged
merged 4 commits into from
May 16, 2024

Conversation

shivam2502
Copy link
Contributor

Previously the data from function get_market_activity_report in reports.py was
- Unorganized
- Bytes format
- Contained irrelevant headers and metadata
- Not Convertible to dataframe

Now this function returns
- Dataframe with only relevant data

@pratik141 pratik141 merged commit e9da3c6 into pratik141:main May 16, 2024
5 checks passed
response = fetch_csv(url, cookies, response_type="raw")
df = pd.read_csv(BytesIO(response), skiprows=8)
df.drop(columns=['Unnamed: 0'], inplace=True)
df = df[:77]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shivam2502 Hey, this screws the top gainer/loser when you slice, please can you get rid of it. Thanks.

@shivam2502
Copy link
Contributor Author

shivam2502 commented May 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants