initialize pd dataframe with custom columns code example
Example 1: initialize pandas dataframe with column names
column_names = ["a", "b", "c"]
df = pd.DataFrame(columns = column_names)
Example 2: pd.dataframe initial columns
import pandas as pd
df = pd.DataFrame(columns = ['Name', 'Age'])