Pandas DataFrame info() Method with example

Spread the love

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 = ''
df = pd.read_csv(url)

Now we can use the info() method.

Rating: 1 out of 5.

Leave a Reply