📜  创建一个空的数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.647000             🧑  作者: Mango

代码示例6
#This was first Posted By Hilarious Hornet 
newDF = pd.DataFrame() #creates a new dataframe that's empty
newDF = newDF.append(oldDF, ignore_index = True) # ignoring index is optional
# try printing some data from newDF
print(newDF.head()) #again optional