Skip to content

Commit

Permalink
Update 02 Get Universe Data.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Jan 20, 2025
1 parent 51f8b72 commit 29589f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

<p class='python'>The <code>universe_history</code> method returns a Series where the multi-index is the universe <code>Symbol</code> and the time when universe selection would occur in a backtest. Each row in the data column contains a list of <code>Fundamental</code> objects. The following image shows the first 5 rows of an example Series:</p>
<img class="python docs-image" src="https://cdn.quantconnect.com/i/tu/universe-selection-history-dataframe-python.png" alt="Historical fundamental universe dataframe">
<p class='python'>To get a flat DataFrame instead of a Series, set the <code>flatten</code> argument to <code>True</code>.</p>

<p class='csharp'>The <code>UniverseHistory</code> method returns an <code>IEnumerable&lt;IEnumerable&lt;Fundamental&gt;&gt;</code> object. </p>

<li class='python'>Iterate through the Series to access the universe data.</li>
Expand Down

0 comments on commit 29589f8

Please sign in to comment.