assign a value in dataframe from inside a 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