def (df: pd.DataFrame) -> pd.DataFrame: code example Example: pd dataframe df = pd.DataFrame ({"x": x_array, "y": y_array})