<jupyter_start><jupyter_text>Хэрхэн function df эсвэл series-т оруулах вэ?Үндсэндсээ гол үндсэн 3н функ бий. map, apply, applymap<jupyter_code>fbcomment['com_msg_len'] = fbcomment.comment_message.astype(str).apply(len)
fbcomment.loc[1:5,['comment_message','com_msg_len']]
fbcomment['comment_likes'].dtype
fbcomment.loc[59452,'comment_message']<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13404825737265416, 'fraction_numerical': 0.021447721179624665, 'mean_word_length': 12.357142857142858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '552563', 'license': 'Apache-2.0', 'n_tokens_mistral': 165, 'n_tokens_neox': 167, 'n_words': 19, 'path': 'Working with Pandas 4.ipynb', 'repo_name': 'enod/Pandas_walkthrough', 'size': '373'}