<jupyter_start><jupyter_text>標題1 標題2 標題3![](https://www.google.com.tw/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png)$\sqrt2$$\sqrt(a^2+b^2)$<jupyter_code>import pandas as pd
df = pd.read_csv('ted_main.csv', encoding='utf-8')
df
# 單行操作： ["標籤名"]
df['comments']
# 多行操作：[['標籤1','標籤2']]
# 裡面[]：list 外面[]：列操作
df[['comments', 'description']]
# 翻轉
df.T
# 存檔
df.T.to_csv('ted_transpose')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.22748815165876776, 'fraction_numerical': 0.035545023696682464, 'mean_word_length': 8.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '371754', 'license': 'Unlicense', 'n_tokens_mistral': 226, 'n_tokens_neox': 233, 'n_words': 22, 'path': 'main3_ted.ipynb', 'repo_name': 'fatwheel/TibaMeCrawler', 'size': '422'}