I am stuck with my pandas script.
Actually , i am working with two csv file(one input and the other output file). i want to copy all the rows of two column and want to m
The solution I can think of is to use .loc to get the column. You can try df.loc[:,a] instead of df.a. Pandas dataframe columns cannot be created using the dot method to avoid potential conflicts with the dataframe attributes. Hope this helps
.loc
df.loc[:,a]
df.a