79181910

Date: 2024-11-12 16:18:08
Score: 1
Natty:
Report link

With python 3.13 "fig" is deprecated use "figure".

df = sns.load_dataset('iris')
sns_plot = sns.pairplot(df, hue='species', size=2.5)
fig = sns_plot.figure
fig.savefig('file.jpg')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lisandro