<jupyter_start><jupyter_text>Task 4 - Dictionaries, Lists and data manapulationIn this part we explore another fundamental data structure in python, called Dictionaries.  4.1: Create a dictionary that has 3 keys: name, age and salary, and enter in the following dummy information. Sample output> {'name': '<NAME>', 'age': 59, 'salary': 3000000.0}<jupyter_code>#Your Solution Here<jupyter_output><empty_output><jupyter_text>4.2: Create a second dictionary, this time with at least 5 different names, ages, and salaries.*Hint: There should only be three keys, and the values should be a list.* Sample Output> {'name': ['<NAME>', 'Person 2', 'Person 3'],> 'age': [59, 24, 40],> 'salary': [30000000.0, 200000.0, 900000.0]}<jupyter_code>#Your Solution Here<jupyter_output><empty_output><jupyter_text>4.3: Create a pandas dataframe using the dictionary you created above**Hint: Use the `pd.DataFrame.from_dict()` method** Sample output![](images/df.png)<jupyter_code>#Your Solution Here<jupyter_output><empty_output><jupyter_text>4.4: Rename all three columns of the dataframe*Hint: you should use the pandas function [rename()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rename.html) to accomplish this. You can rename it to whatever you like, just show us you are able to use this function*<jupyter_code># Your Solution Here<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11858279103398409, 'fraction_numerical': 0.03759942154736081, 'mean_word_length': 6.562841530054645, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '387420', 'license': 'MIT', 'n_tokens_mistral': 470, 'n_tokens_neox': 428, 'n_words': 150, 'path': 'notes/week07/lab/Task4.ipynb', 'repo_name': 'ubco-cmps/data301_course', 'size': '1387'}