seaborn/_oldcore.py:1498: FutureWarning: is_categorical_dtype is deprecated and will be removed in a

seaborn/_oldcore.py:1498: FutureWarning: is_categorical_dtype is deprecated and will be removed in a_第1张图片

seaborn报错:

seaborn/_oldcore.py:1498: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
  if pd.api.types.is_categorical_dtype(vector):

解决方法:

import warnings
warnings.filterwarnings("ignore", "is_categorical_dtype")
warnings.filterwarnings("ignore", "use_inf_as_na")

 更多干货

你可能感兴趣的:(#,Python可视化,人工智能,python,信息可视化,matplotlib)