PANDAS split
时间: 2023-09-13 07:13:29 浏览: 90
pandaboard 分区
Pandas中的split函数可以用来将字符串进行分割。它有几个参数,其中包括pat、n和expand。pat用于指定分隔符,默认为空格,n用于指定分割的次数,默认为-1,表示分割所有的字符串,expand用于决定分割后的结果是分布在多列还是以列表的形式分布在一列中,默认为False。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Pandas-处理文本字符串(拆分split和替换replace)](https://blog.csdn.net/qq_14815199/article/details/120972768)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [pandas字符串分割str.split()函数](https://blog.csdn.net/hanyunkaka/article/details/120586261)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文