
The info() method in pandas return the summary of a dataframe. It tells you how many columns you have, their data types, column labels, range index and the count of non-null values in each columns and the memory usage.
Let’s read a dataset.
import pandas as pd
url = 'https://raw.githubusercontent.com/bprasad26/lwd/master/data/clothing_store_sales.csv'
df = pd.read_csv(url)
df.head()

Now we can use the info() method.
df.info()
