pandas dataframe empty with column names code example
Example 1: blank dataframe with column names
df = pd.DataFrame(columns = column_names)
Example 2: initialize pandas dataframe with column names
column_names = ["a", "b", "c"]
df = pd.DataFrame(columns = column_names)