Tags
python
Asked 2 years ago
5 Aug 2021
Views 264
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