Google News
logo
Pandas - Interview Questions
How to create an empty dataframe in pandas?
The dataframe we used as data structure of pandas and work with two-dimensional arrays with rows and columns.
It will store data and has two different rows and column index.

Example : 
import pandas as pd
info=pd.DataFrame ()
print(info)​


Output :
Empty DataFrame
Columns: []
Index: []

Advertisement