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()
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.
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
After the download is complete, unzip the file to the seaborn-data folder.
Load the data set afterwards.