I have a pandas dataframe with approx. 20 columns and I want to print out the values of only 4 columns to a csv file.
My python code is:
df(['statnr','agldate','stdragl','ff_pred']).to_csv("out.csv", sep=';')
I get this error message: TypeError: 'DataFrame' object is not callable
What am i doing wrong? Any hint is appreciated!
Thanks and kind regards, Alexander