Tags
python
Asked 3 years ago
5 Aug 2021
Views 323
steave ray

steave ray posted

how to create empty dataframe in Pandas ?

css-learner

css-learner
answered Aug 5 '21 00:00

to create empty dataframe at pandas use constructor DataFrame like as below :

import pandas as pd
df = pd.DataFrame()
print(df)


it will print

Empty DataFrame
Columns: []
Index: []
Post Answer