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):
How can i fix those, at the moment i simpled filtered out the warning cause it was making my visualization worse!