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 |
()
|
|
kwargs
|
keyword arguments to |
{}
|
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 |
()
|
|
kwargs
|
keyword arguments to |
{}
|
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 |
()
|
|
kwargs
|
keyword arguments to |
{}
|
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame. |