convert_to_dataframe
utils.convert_to_dataframe(data)
Convert a list of dictionaries with a ‘/Date(…)’ timestamp into a pandas DataFrame with a nicely formatted datetime column.
Parameters
Name | Type | Description | Default |
---|---|---|---|
data | list | A list of dictionaries, each containing ‘BarDate’ or ‘TickDate’ keys with ‘/Date(…)’ format. | required |
Returns
Name | Type | Description |
---|---|---|
pd.DataFrame | A pandas DataFrame with a ‘Date’ column as a datetime and other columns as numeric data. |