<jupyter_start><jupyter_text>012-pandas 中如何使用 string 方法？> How do I use string methods in pandas?<jupyter_code>'hello'.upper()
import pandas as pd 
orders = pd.read_table('https://bit.ly/chips4cda')<jupyter_output><empty_output><jupyter_text>为什么使用 read_table 什么是 tsv 文件？ 如何读取 tsv 文件？<jupyter_code>orders.head()
orders.item_name.str.upper()
orders.item_name.str.contains('Chicken')<jupyter_output><empty_output><jupyter_text>访问：https://pandas.pydata.org/pandas-docs/stable/reference/series.htmlconstructor搜索：string handling<jupyter_code># 福利

orders.choice_description.str.replace('[','')
orders.choice_description.str.replace('[','').str.replace(']','')
orders.head()
orders.choice_description.str.replace('[\[\]]','')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1713520749665328, 'fraction_numerical': 0.00535475234270415, 'mean_word_length': 9.108108108108109, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '15691', 'license': 'MIT', 'n_tokens_mistral': 303, 'n_tokens_neox': 303, 'n_words': 33, 'path': '003-学习 Pandas/Q&A 问答合集/012-string-methods.ipynb', 'repo_name': 'imcda/Python-Tutorial-for-Humans', 'size': '747'}