Answers for "how to create a dataframe with column names in python"

2

initialize pandas dataframe with column names

column_names = ["a", "b", "c"]
df = pd.DataFrame(columns = column_names)
Posted by: Guest on October-19-2020

Code answers related to "how to create a dataframe with column names in python"

Python Answers by Framework

Browse Popular Code Answers by Language