首页 > 解决方案 > 在 Python 中使用 alibi 包时,模块“pandas”没有属性“DataFrame”

问题描述

我希望有人能帮助我。当我运行以下设置时,我收到以下错误。似乎是不在场证明包导致它。与此问题相关的其他帖子要么是因为 'DataFrame' 或 .py 文件名的区分大小写的拼写。

import tensorflow as tf
tf.logging.set_verbosity(tf.logging.ERROR)  # suppress deprecation messages
from tensorflow.keras import backend as K
from tensorflow.keras.layers import Dense, Input
from tensorflow.keras.models import Model, load_model
from tensorflow.keras.utils import to_categorical
import matplotlib
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import os
from sklearn.datasets import load_boston
from alibi.explainers import CounterFactualProto

AttributeError:模块 'pandas' 没有属性 'DataFrame'

标签: python

解决方案


推荐阅读