I'm using python 3.9. My pd.DataFrame has 11 columns which are numbered as (by default)
Col names --> 0 1 2 3 4 5 6 7 8 9 10
Can I use np.arange or pd.array() or someother function within pandas to assign/change the column names to alphabets?
I know long solution is : df = pd.DataFrame(input_data,columns=['A','B','C','D','E','F','G','H','I','J','K'])
I was wondering if some function/method like columns=np.arange('A','J') would be possible. From running this code I learned arange can only handle int and floats not strings. Is there any object function that can accomplish this?
BRgds,