|
- C:\Users\xxx\AppData\Local\Programs\Python\Python37\python.exe D:/book/Python/workspace/autooss/lib/readExcelHelper.py
- C:\Users\xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\indexing.py:362: SettingWithCopyWarning:
- A value is trying to be set on a copy of a slice from a DataFrame.
- Try using .loc[row_indexer,col_indexer] = value instead
- See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
- self.obj[key] = _infer_fill_value(value)
- C:\Users\xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\indexing.py:543: SettingWithCopyWarning:
- A value is trying to be set on a copy of a slice from a DataFrame.
- Try using .loc[row_indexer,col_indexer] = value instead
- See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
- self.obj[item] = s
- D:/book/Python/workspace/autooss/lib/readExcelHelper.py:77: SettingWithCopyWarning:
- A value is trying to be set on a copy of a slice from a DataFrame
- See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
- df2.drop_duplicates(['Location', 'Interface_prefix'], keep='first', inplace=True)
- C:\Users\xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\frame.py:3940: SettingWithCopyWarning:
- A value is trying to be set on a copy of a slice from a DataFrame
- See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
- errors=errors)
- Process finished with exit code 0
复制代码
为什么 df2.drop_duplicates(['Location', 'Interface_prefix'], keep='first', inplace=True) 会出现这个warning呢,求指教,谢谢 |
|