Lean
$LEAN_TAG$
|
Collection of methods that converts lists of objects in pandas.DataFrame More...
Public Member Functions | |
PyObject | GetDataFrame (IEnumerable< Slice > data, Type dataType=null) |
Converts an enumerable of Slice in a pandas.DataFrame More... | |
PyObject | GetDataFrame< T > (IEnumerable< T > data, bool symbolOnlyIndex=false) |
Converts an enumerable of IBaseData in a pandas.DataFrame More... | |
PyObject | GetIndicatorDataFrame (IEnumerable< KeyValuePair< string, List< IndicatorDataPoint >>> data) |
Converts a dictionary with a list of IndicatorDataPoint in a pandas.DataFrame More... | |
PyObject | GetIndicatorDataFrame (PyObject data) |
Converts a dictionary with a list of IndicatorDataPoint in a pandas.DataFrame More... | |
override string | ToString () |
Returns a string that represent the current object More... | |
Static Public Member Functions | |
static PyObject | ConcatDataFrames (IEnumerable< PyObject > dataFrames, IEnumerable< object > keys=null, IEnumerable< string > names=null, bool sort=true, bool dropna=true) |
Concatenates multiple data frames More... | |
Collection of methods that converts lists of objects in pandas.DataFrame
Definition at line 30 of file PandasConverter.cs.
PyObject QuantConnect.Python.PandasConverter.GetDataFrame | ( | IEnumerable< Slice > | data, |
Type | dataType = null |
||
) |
Converts an enumerable of Slice in a pandas.DataFrame
data | Enumerable of Slice |
dataType | Optional type of bars to add to the data frame |
Definition at line 55 of file PandasConverter.cs.
PyObject QuantConnect.Python.PandasConverter.GetDataFrame< T > | ( | IEnumerable< T > | data, |
bool | symbolOnlyIndex = false |
||
) |
Converts an enumerable of IBaseData in a pandas.DataFrame
data | Enumerable of Slice |
symbolOnlyIndex | Whether to make the index only the symbol, without time or any other index levels |
Helper method for testing
T | : | ISymbolProvider |
Definition at line 80 of file PandasConverter.cs.
PyObject QuantConnect.Python.PandasConverter.GetIndicatorDataFrame | ( | IEnumerable< KeyValuePair< string, List< IndicatorDataPoint >>> | data | ) |
Converts a dictionary with a list of IndicatorDataPoint in a pandas.DataFrame
data | Dictionary with a list of IndicatorDataPoint |
Definition at line 109 of file PandasConverter.cs.
PyObject QuantConnect.Python.PandasConverter.GetIndicatorDataFrame | ( | PyObject | data | ) |
Converts a dictionary with a list of IndicatorDataPoint in a pandas.DataFrame
data | PyObject that should be a dictionary (convertible to PyDict) of string to list of IndicatorDataPoint |
Definition at line 129 of file PandasConverter.cs.
override string QuantConnect.Python.PandasConverter.ToString | ( | ) |
Returns a string that represent the current object
Definition at line 169 of file PandasConverter.cs.
|
static |
Concatenates multiple data frames
dataFrames | The data frames to concatenate |
keys | Optional new keys for a new multi-index level that would be added to index each individual data frame in the resulting one |
names | The optional names of the new index level (and the existing ones if they need to be changed) |
sort | Whether to sort the resulting data frame |
dropna | Whether to drop columns containing NA values only (Nan, None, etc) |
Definition at line 219 of file PandasConverter.cs.