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()