Function morpheus::df_to_json(const TableInfo&, bool)
Defined in File serializers.cpp
-
std::string morpheus::df_to_json(const TableInfo &tbl, bool include_index_col = true)
Serialize a dataframe into a JSON formatted string.
Note the include_index_col is currently being ignored in both versions of
df_to_json
due to a known issue in Pandas: https://github.com/pandas-dev/pandas/issues/37600- Parameters
tbl – : A wrapper around data in the dataframe
include_index_col – : Determines whether or not to include the dataframe index
- Returns
std::string