1# Basic syntax:
2import pandas as pd
3empty_dataframe = pd.DataFrame()
4
5# Create empty dataframe with column names
6empty_dataframe = pd.DataFrame(columns=['your', 'column', 'names'])
7
8# Create empty dataframe with row names
9empty_dataframe = pd.DataFrame(index=['your', 'row', 'names'])
1newDF = pd.DataFrame() #creates a new dataframe that's empty
2newDF = newDF.append(oldDF, ignore_index = True) # ignoring index is optional
3# try printing some data from newDF
4print newDF.head() #again optional
1>>> df_empty = pd.DataFrame({'A' : []})
2>>> df_empty
3Empty DataFrame
4Columns: [A]
5Index: []
6>>> df_empty.empty
7True
8