This is my dataframe that has column names 0 and 0. I need to change it to x and y. Is there any possible solution.
a = pd.DataFrame(array_x)
b = pd.DataFrame(array_y)
c = pd.concat([a,b],axis = 1)
This is my code
This is my dataframe that has column names 0 and 0. I need to change it to x and y. Is there any possible solution.
a = pd.DataFrame(array_x)
b = pd.DataFrame(array_y)
c = pd.concat([a,b],axis = 1)
This is my code
Just assign column name to your dataframe.
like this...
c.columns = ['x','y']