使用熊猫打印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.