Seaborn Error on DQ Environment

Screen Link:

My Code:

chart = sns.boxplot(x='CountryLive', y='MonthlySpend', data=survey_cln_top5)
plt.title('Distribution: Spend per Country', fontsize=16)
plt.xticks(range(5),['US', 'UK', 'India', 'Canada', 'Poland'])
plt.xlabel('Country', fontsize=16)
plt.ylabel('Spend', fontsize=16)

What I expected to happen: No Warning (as it is on my local system)

What actually happened:

/dataquest/system/env/python3/lib/python3.4/site-packages/seaborn/ FutureWarning:

remove_na is deprecated and is a private function. Do not use.

What is the reason for warning and how to remove it?

1 Like

From memory, the issue was that seaborn was using a private method. I think this issue is more prevalent on DQ as they use an outdated version. You can suppress the warning:

import warnings

Hi Maksim,

You can refer to this previous discussion of this problem and how to resolve it.

1 Like