Skip to content

kolena.workflow.io#

Legacy Warning

Content in this section reflects outdated practices or deprecated features. It's recommended to avoid using these in new developments.

While existing implementations using these features will continue to receive support, we strongly advise adopting the latest standards and tools for new projects to ensure optimal performance and compatibility. For more information and up-to-date practices, please refer to our newest documentation at docs.kolena.io.

dataframe_to_csv(df, *args, **kwargs) #

Helper function to export pandas DataFrame containing annotation or asset to CSV format.

Parameters:

Name Type Description Default
args

positional arguments to pandas.DataFrame.to_csv.

()
kwargs

keyword arguments to pandas.DataFrame.to_csv.

{}

Returns:

Type Description
Union[str, None]

None or str.

dataframe_from_csv(*args, **kwargs) #

Helper function to load pandas DataFrame exported to CSV with dataframe_to_csv.

Parameters:

Name Type Description Default
args

positional arguments to pandas.DataFrame.read_csv.

()
kwargs

keyword arguments to pandas.DataFrame.read_csv.

{}

Returns:

Type Description
DataFrame

DataFrame.

dataframe_from_json(*args, **kwargs) #

Helper function to load pandas DataFrame containing annotation or asset from JSON file or string.

Parameters:

Name Type Description Default
args

positional arguments to pandas.DataFrame.read_json.

()
kwargs

keyword arguments to pandas.DataFrame.read_json.

{}

Returns:

Type Description
DataFrame

DataFrame.