fileflow.utils package¶
fileflow.utils.dataframe_utils module¶
-
fileflow.utils.dataframe_utils.clean_and_write_dataframe_to_csv(data, filename)[source]¶ Cleans a dataframe of np.NaNs and saves to file via pandas.to_csv
Parameters: - data (
pandas.DataFrame) – data to write to CSV - filename (str | None) – Path to file to write CSV to. if None, string of data will be returned
Returns: If the filename is None, returns the string of data. Otherwise returns None.
Return type: str | None
- data (