dataframe删去第一行
时间: 2023-11-18 17:54:08 浏览: 118
要删除dataframe的第一行,可以使用drop方法,并设置axis参数为0,inplace参数为True。代码如下所示:
```python
df.drop(df.index<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [python学习之删除DataFrame某一行/列内容](https://blog.csdn.net/weixin_39886929/article/details/109929376)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [R语言基本命令,dataframe增删改查](https://blog.csdn.net/weixin_35112750/article/details/111927114)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文