<jupyter_start><jupyter_text>Element-Wise Calculations<jupyter_code>import numpy as np
nums = np.arange(10)
new_nums = nums + 5

print(nums)
print(new_nums)
new_nums = nums - 5

print(nums)
print(new_nums)
new_nums = nums * 5

print(nums)
print(new_nums)
new_nums = nums / 5

print(nums)
print(new_nums)<jupyter_output>[0 1 2 3 4 5 6 7 8 9]
[0.  0.2 0.4 0.6 0.8 1.  1.2 1.4 1.6 1.8]
{'fraction_non_alphanumeric': 0.13350785340314136, 'fraction_numerical': 0.08900523560209424, 'mean_word_length': 4.1066666666666665, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '103968', 'license': 'MIT', 'n_tokens_mistral': 220, 'n_tokens_neox': 196, 'n_words': 46, 'path': 'jupyter_labs_conda/03_NumPy_ElementWiseCalc.ipynb', 'repo_name': 't4d-classes/python-data-analysis_06022021', 'size': '382'}