Fix the TypeError: ‘DataFrame’ object is not callable error in Pandas
import pandas as pd team = ['West', 'East', 'North', 'South'] interviews = [120, 143, 78, 56] # initializing the DataFrame hr = pd.DataFrame(dict (team = team, interviews = interviews)) We can look at the DataFrame content by using the head() method: