Skip to content

base

base ¤

Base ¤

Base(dataframe: DataFrame, column_name: str = 'systime')

Initializes the Base with a DataFrame, detects time columns, converts them to datetime, and sorts the DataFrame by the specified column (or the detected time column if applicable).

Parameters:

Name Type Description Default
dataframe DataFrame

The DataFrame to be processed.

required
column_name str

The column to sort by. Default is 'systime'. If the column is not found or is not a time column, the class will attempt to detect other time columns.

'systime'

get_dataframe ¤

get_dataframe() -> pd.DataFrame

Returns the processed DataFrame.