Skip to content

Commit

Permalink
Merge pull request ranaroussi#410 from trenton3983/master
Browse files Browse the repository at this point in the history
Add link to SO question on how to deal with multi-level dataframe column name
  • Loading branch information
ranaroussi authored Mar 24, 2021
2 parents e77a1cf + 46b0ab7 commit 3248fed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,19 @@ I've also added some options to make life easier :)
)
Managing Multi-Level Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The following answer on Stack Overflow is for `How to deal with multi-level column names downloaded with yfinance? <https://stackoverflow.com/questions/63107801>`_

* ``yfinance`` returns a ``pandas.DataFrame`` with multi-level column names, with a level for the ticker and a level for the stock price data

* The answer discusses:

* How to correctly read the the multi-level columns after saving the dataframe to a csv with ``pandas.DataFrame.to_csv``
* How to download single or multiple tickers into a single dataframe with single level column names and a ticker column


``pandas_datareader`` override
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 3248fed

Please sign in to comment.