忽略FutureWarning警告信息

在学习python的Seaborn时候发现有如下提示,

/usr/local/python3/lib/python3.6/site-packages/scipy/stats/stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval

网上搜索了下可以不显示警告信息

import warnings
warnings.filterwarnings("ignore")

你可能感兴趣的:(Python)