Not sure how to resolve this error
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import nba_api
from nba_api.stats.endpoints import leagueleaders
stats = leagueleaders.LeagueLeaders(season='2017-18')
df17 = stats.get_data_frames()
df17.head()
'list' object has no attribute 'head'