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# Create Empty DataFrame with column names
2df = pd.DataFrame(columns=['species','name','age'])
3df.loc[1] = ['dog','Fido','3'] # Populate Row at index 1 (row 1)
4df.loc[2] = ['cat','Felix','2'] # Populate Row at index 2 (row 2)
5print(df)
6# Output:
7# species name age
8# 1 dog Fido 3
9# 2 cat Felix 2