pandas filter数据筛选
?
https://study.163.com/course/courseMain.htm?courseId=1006383008&share=2&shareId=400000000398149(博主錄制)
?
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.filter.html(官網介紹)
DataFrame.filter(self,?items=None,?like=None,?regex=None,?axis=None)[source]
Subset rows or columns of dataframe according to labels in the specified index.
Note that this routine does not filter a dataframe on its contents. The filter is applied to the labels of the index.
| items? :?list-like Keep labels from axis which are in items. Keep labels from axis for which “like in label == True”. Keep labels from axis for which re.search(regex, label) == True. The axis to filter on. By default this is the info axis, ‘index’ for Series, ‘columns’ for DataFrame. |
?
https://study.163.com/provider/400000000398149/index.htm?share=2&shareId=400000000398149(博主視頻教學主頁)
?
轉載于:https://www.cnblogs.com/webRobot/p/11485798.html
總結
以上是生活随笔為你收集整理的pandas filter数据筛选的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 机械光开关 MEMS光开关
- 下一篇: x / k向上取整转换为向下取整