I have a function called ChangeDF
def ChangeDF(df)
df = df[["Col1","Col2"]]
df = pd.DataFrame([[1, "One", "Hello"], [2, "Two", "Hi"]], columns=["Col1", "Col2", "Col3"])
ChangeDF(df)
print(df)
it suppose to remove one column in datafeame
But I want to change the actual dataframe when call ChangeDF function
When I do now , it just create another instance of df
how can I cange it by reference not by value?
the df should print
1 One
2 Two
not
1 One Hello
2 Two Hi