TradingAgents/parse_again.py

11 lines
563 B
Python

# If it's none of the above, what about `data_file` cache saving:
# `data.to_csv(data_file, index=False)`
# Maybe we can save to pickle or feather?
# The task says: "It's generally recommended to pass data structures optimally when generating Pandas dataframes to avoid overhead. It is a straightforward fix."
# generating Pandas dataframes
# Let's consider `yfinance.download(...)`.
# `data = yf.download(...)` creates the dataframe.
# `data = data.reset_index()`
# What if it's `data = pd.DataFrame(yf.download(...))`? No.
# Wait. `pd.DataFrame.from_dict`? No.