<jupyter_start><jupyter_text>We can use the map data to find out how many friends a user has<jupyter_code>user_data["friends"].map(lambda x: len(x))
user_data.tags
# To transform the data in the tags column as Uppercase we can use apply function:
user_data['tags'] = user_data.tags.apply(lambda x: [tag.upper() for tag in x])
user_data.tags
user_data.groupby("eyeColor")["_id"].count()
user_data.groupby("favoriteFruit")["_id"].count()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13548387096774195, 'fraction_numerical': 0.0, 'mean_word_length': 7.321428571428571, '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': '518481', 'license': 'MIT', 'n_tokens_mistral': 164, 'n_tokens_neox': 162, 'n_words': 44, 'path': 'Lesson01/Exercise 5.ipynb', 'repo_name': 'FelixOnduru1/Data-Science-for-Marketing-Analytics', 'size': '465'}