|
Lean
$LEAN_TAG$
|
Organizes a list of data to create pandas.DataFrames More...
Public Member Functions | |
| PandasData (object data, bool timeAsColumn=false) | |
| Initializes an instance of PandasData More... | |
| void | Add (object data) |
| Adds security data object to the end of the lists More... | |
| void | Add (TradeBar tradeBar, QuoteBar quoteBar) |
| Adds Lean data objects to the end of the lists More... | |
| PyObject | ToPandasDataFrame (int levels=2, bool filterMissingValueColumns=true) |
| Get the pandas.DataFrame of the current PandasData state More... | |
Static Public Member Functions | |
| static PyObject | ToPandasDataFrame (IEnumerable< PandasData > pandasDatas, bool skipTimesColumn=false) |
| Helper method to create a single pandas data frame indexed by symbol More... | |
Properties | |
| bool | IsCustomData [get] |
| Gets true if this is a custom data request, false for normal QC data More... | |
| int | Levels = 2 [get] |
| Implied levels of a multi index pandas.Series (depends on the security type) More... | |
Organizes a list of data to create pandas.DataFrames
Definition at line 33 of file PandasData.cs.
| QuantConnect.Python.PandasData.PandasData | ( | object | data, |
| bool | timeAsColumn = false |
||
| ) |
Initializes an instance of PandasData
Definition at line 119 of file PandasData.cs.
| void QuantConnect.Python.PandasData.Add | ( | object | data | ) |
Adds security data object to the end of the lists
| data | IBaseData object that contains security data |
Definition at line 161 of file PandasData.cs.
Adds Lean data objects to the end of the lists
| tradeBar | TradeBar object that contains trade bar information of the security |
| quoteBar | QuoteBar object that contains quote bar information of the security |
Definition at line 251 of file PandasData.cs.
| PyObject QuantConnect.Python.PandasData.ToPandasDataFrame | ( | int | levels = 2, |
| bool | filterMissingValueColumns = true |
||
| ) |
Get the pandas.DataFrame of the current PandasData state
| levels | Number of levels of the multi index |
| filterMissingValueColumns | If false, make sure columns with "missing" values only are still added to the dataframe |
Definition at line 264 of file PandasData.cs.
|
static |
Helper method to create a single pandas data frame indexed by symbol
Will add a single point per pandas data series (symbol)
Definition at line 387 of file PandasData.cs.
|
get |
Gets true if this is a custom data request, false for normal QC data
Definition at line 82 of file PandasData.cs.
|
get |
Implied levels of a multi index pandas.Series (depends on the security type)
Definition at line 87 of file PandasData.cs.