在熊猫中打印dataFrame时获取UserWarning:布尔系列

时间:2018-07-16 16:33:58

标签: python python-3.x pandas

使用熊猫打印datFrame时,我遇到了UserWarning错误

下面是我的dataFrame:

data = pd.read_csv('/home/karn/plura/Test/Python_Pnada/Cyber_July.csv', usecols=['Platform ID', 'Safe', 'Target system address', 'Failure reason'])

hostData = data[data['Platform ID'].str.startswith("CS-Unix-")][data['Safe'].str.contains("^CS-.*DEFAULT-UNIX-ROOT$")] [['Platform ID', 'Safe', 'Target system address','Failure reason']]

下面是错误代码:

./CyberCSV.py:20: UserWarning: Boolean Series key will be reindexed to match DataFrame index.

0 个答案:

没有答案