ds_resource_plugin_py_lib.common.serde.serialize.awswrangler ============================================================ .. py:module:: ds_resource_plugin_py_lib.common.serde.serialize.awswrangler .. autoapi-nested-parse:: **File:** ``awswrangler.py`` **Region:** ``ds_resource_plugin_py_lib/common/serde/serialize`` Description ----------- Serialize a pandas DataFrame into a value using awswrangler. .. rubric:: Example .. code-block:: python from ds_resource_plugin_py_lib.common.serde.serialize.awswrangler import AwsWranglerSerializer from ds_resource_plugin_py_lib.common.resource.dataset.storage_format import DatasetStorageFormatType serializer = AwsWranglerSerializer(format=DatasetStorageFormatType.CSV) result = serializer(df, boto3_session=boto3_session) Attributes ---------- .. autoapisummary:: ds_resource_plugin_py_lib.common.serde.serialize.awswrangler.logger Classes ------- .. autoapisummary:: ds_resource_plugin_py_lib.common.serde.serialize.awswrangler.AwsWranglerSerializer Module Contents --------------- .. py:data:: logger .. py:class:: AwsWranglerSerializer Bases: :py:obj:`ds_resource_plugin_py_lib.common.serde.serialize.base.DataSerializer` Extensible class to serialize dataset content. Convert obj to bytes. Not supposed to be used directly, but to be subclassed. .. py:attribute:: format :type: ds_resource_plugin_py_lib.common.resource.dataset.storage_format.DatasetStorageFormatType .. py:attribute:: kwargs :type: dict[str, Any] .. py:method:: __call__(obj: pandas.DataFrame, **kwargs: Any) -> Any Serialize a pandas DataFrame into a value. :param obj: The pandas DataFrame to serialize. :param \*\*kwargs: Additional keyword arguments. :returns: A value.