Pandas rename column by position?
pandas, python
Solution
try this
df.rename(columns={ df.columns[1]: "your value" }, inplace = True)
Problem
I was just wondering if I can rename column names by their positions. I know how to rename them by their actual names using: `df.rename(columns = {})` How do I do it if I do not know the column names and know only their positions?