Function morpheus::df_to_json(const TableInfo&, bool)#

Function Documentation#

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: pandas-dev/pandas#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