Function morpheus::df_to_json(MutableTableInfo&, bool)

std::string morpheus::df_to_json(MutableTableInfo &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 Requires MutableTableInfo since there is no C++ implementation of the JSON writer

Parameters
  • tbl – : A wrapper around data in the dataframe

  • include_index_col – : Determines whether or not to include the dataframe index

Returns

std::string

© Copyright 2023, NVIDIA. Last updated on Aug 1, 2023.