mariostoev/finviz

Feature request: save stock list to a dataframe

Opened this issue · 1 comments

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()

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