astro.dataframes.pandas

Module Contents

Classes

PandasDataframe

Pandas-compatible dataframe class that can be serialized and deserialized into XCom by Airflow 2.5

Attributes

logger

astro.dataframes.pandas.logger
class astro.dataframes.pandas.PandasDataframe(data=None, index=None, columns=None, dtype=None, copy=None)

Bases: pandas.DataFrame

Pandas-compatible dataframe class that can be serialized and deserialized into XCom by Airflow 2.5

Parameters
  • index (Axes | None) –

  • columns (Axes | None) –

  • dtype (Dtype | None) –

  • copy (bool | None) –

version :ClassVar[int] = 1
serialize()
static deserialize(data, version)
Parameters
  • data (dict) –

  • version (int) –

classmethod from_pandas_df(df)
Parameters

df (pandas.DataFrame) –

Return type

PandasDataframe