How to select a subset of DataFrame in Pandas?

To select a subset of DataFrame in Pandas, we use nba.csv function.

Example:

# import required module
import pandas as pd
 
# assign dataframe
data = pd.read_csv("nba.csv")
 
# display dataframe
data.head()