geonature.core.imports.checks.dataframe.dates

geonature.core.imports.checks.dataframe.dates#

Functions#

concat_dates(df, datetime_min_col, datetime_max_col, ...)

Concatenates date and time columns to form datetime columns.

Module Contents#

geonature.core.imports.checks.dataframe.dates.concat_dates(df: pandas.DataFrame, datetime_min_col: str, datetime_max_col: str, date_min_col: str, date_max_col: str = None, hour_min_col: str = None, hour_max_col: str = None)[source]#

Concatenates date and time columns to form datetime columns.

Parameters#

dfpandas.DataFrame

The input DataFrame.

datetime_min_colstr

The column name for the minimum datetime.

datetime_max_colstr

The column name for the maximum datetime.

date_min_colstr

The column name for the minimum date.

date_max_colstr, optional

The column name for the maximum date.

hour_min_colstr, optional

The column name for the minimum hour.

hour_max_colstr, optional

The column name for the maximum hour.