首页 > 解决方案 > fanyimpute 安装后,我在导入时遇到此错误

问题描述

fancyimpute导入库时出错:

import os
import numpy as np
import pandas as pd
from fancyimpute import KNN
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline

我正面临这个错误:

Using Tensorflow backend.
C:\Users\userName\anaconda3\envs\py36\lib\site-packages\tensorflow\python\framework\dtypes.py:516: 
FutureWarning: Passing(type, 1) or '1type' as a synonym of type is deprecated; 
in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype(["qint8", np.int8, 1)])

标签: python-3.xfancyimpute

解决方案


您所显示的只是FutureWarning,这意味着某些库使用了 中的某些内容,在未来的版本tensorflow中将不支持,但它应该可以正常工作,除非屏幕截图中没有显示其他错误。tensorflow


推荐阅读