editing the dataframe from inside a class function python code example
Example: dataFrame changed by function
def test(df):
df = df.copy(deep=True)
df['tt'] = np.nan
return df
def test(df):
df = df.copy(deep=True)
df['tt'] = np.nan
return df