Functions
|
Serializes a DataFrame into CSV and returns the serialized output seperated by lines. |
|
Serializes a DataFrame into JSON and returns the serialized output seperated by lines. |
- df_to_csv(df, include_header=False, strip_newline=False, include_index_col=True)[source]
Serializes a DataFrame into CSV and returns the serialized output seperated by lines.
- Parameters
- dfcudf.DataFrame
Input DataFrame to serialize.
- include_headerbool, optional
Whether or not to include the header, by default False.
- strip_newlinebool, optional
Whether or not to strip the newline characters from each string, by default False.
- include_index_col: bool, optional
Write out the index as a column, by default True.
- Returns
- typing.List[str]
List of strings for each line
- df_to_json(df, strip_newlines=False, include_index_col=True)[source]
Serializes a DataFrame into JSON and returns the serialized output seperated by lines.
- Parameters
- dfcudf.DataFrame
Input DataFrame to serialize.
- strip_newlinebool, optional
Whether or not to strip the newline characters from each string, by default False.
- include_index_col: bool, optional
Write out the index as a column, by default True. Note: This value is currently being ignored due to a known issue in Pandas: https://github.com/pandas-dev/pandas/issues/37600
- Returns
- ——-
- typing.List[str]
List of strings for each line.