Python Pandas Library info function

27 June 2023 132 Reading time: 18 second

The info function in the Pandas library provides a detailed summary of a DataFrame. This function displays the column names, data types, and memory usage of the DataFrame. It also reports the non-null values and memory usage of the DataFrame.

 

import pandas as pd

df = pd.read_csv('data.csv')
# Get information about the DataFrame
df.info()

 

Similar articles