<jupyter_start><jupyter_text>Arithmetic<jupyter_code>import numpy as np
arr = np.arange(1,11)
arr
arr + arr
arr * arr
arr - arr
arr/arr
arr**2<jupyter_output><empty_output><jupyter_text>Universal array functions<jupyter_code>arr
#taking the square
np.sqrt(arr)
#calculating expnetial
np.exp(arr)
#Take sin
np.sin(arr)<jupyter_output><empty_output><jupyter_text>Summary Statistics on Arrays<jupyter_code>arr = np.arange(0,10)
arr
arr.sum()
arr.mean()

arr.max()<jupyter_output><empty_output><jupyter_text>Axis Logic<jupyter_code>arr_2d = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])
arr_2d
arr_2d.sum(axis=0)
arr_2d.sum(axis=1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15548780487804878, 'fraction_numerical': 0.042682926829268296, 'mean_word_length': 9.95, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '638407', 'license': 'MIT', 'n_tokens_mistral': 309, 'n_tokens_neox': 295, 'n_words': 40, 'path': 'Numpy/Numpy Operations.ipynb', 'repo_name': 'ArRosid/learn-datascience', 'size': '656'}