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

Feature request: save stock list to a dataframe #140

Open
RichardBoreiko opened this issue Sep 13, 2022 · 1 comment
Open

Feature request: save stock list to a dataframe #140

RichardBoreiko opened this issue Sep 13, 2022 · 1 comment

Comments

@RichardBoreiko
Copy link

Similar to converting to a CSV, I'd like to be able to convert to a Pandas DataFrame without having to save in a CSV as an intermediate step. I realize I could save to a CSV and then load into a DataFrame, but it would save a step and speed things up.

stock_list.to_csv('buyandhold.csv')

stockdf = stock_list.to_df()

@eaglepix
Copy link

Just convert it to list and plug it into a dataframe. It should work.
pd.DataFrame(list(stock_list))

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

No branches or pull requests

2 participants