abraxos.utils.clear¶
- abraxos.utils.clear(df)[source]
Returns an empty DataFrame with the same schema (columns and dtypes) as the input.
- Parameters:
df (pd.DataFrame) – The input DataFrame.
- Returns:
An empty DataFrame with the same structure as df.
- Return type:
pd.DataFrame
Examples
>>> df = pd.DataFrame({'x': [1, 2, 3]}) >>> clear(df) Empty DataFrame Columns: [x] Index: []