create empty df python code example Example: create an empty dataframe import pandas as pd df = pd.DataFrame(columns=['A','B','C','D','E','F','G'])