SyntaxFix
Write A Post
Hire A Developer
Questions
Are you looking for something like this?
COLUMN_NAMES=['A','B','C','D','E','F','G'] df = pd.DataFrame(columns=COLUMN_NAMES) df.columns Index(['A', 'B', 'C', 'D', 'E', 'F', 'G'], dtype='object')