Solve Seaborn.load_dataset() running error

Solve Seaborn.load_dataset() running error

useload_datasetWhen the method loads the data set, the following error is reported:

import matplotlib.pyplot as plt
import seaborn as sns

sns.set()
tips = sns.load_dataset('tips')
sns.relplot(x='total_bill', y='tip', col='time', hue='smoker',
		 style='smoker', size='size', data=tips)
plt.show()

Insert picture description here

Tried the method of modifying DNS on the Internet, but it didn't work, and then checked the local seaborn-data file and found that it was empty.

Insert picture description here

Then download the data set on github and save it to this folder to solve the problem.
github address: https://github.com/mwaskom/seaborn-data

Insert picture description here

After the download is complete, unzip the file to the seaborn-data folder.

Insert picture description here
Load the data set afterwards.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43965708/article/details/112632123