<jupyter_start><jupyter_text>NUMPY FUNDAMENTALS<jupyter_code>array_z=np.array([[2,3,4,5],[5,6,7,78],[3,4,7,5]])
array_z
array_z[0]
array_z[0][1]
array_z[2][2]
array_z[2][3]
array_z[-1]
array_z[-2]<jupyter_output><empty_output><jupyter_text>We can assign values to individual elements of an array. See the code below.<jupyter_code>array_z[0,3]=9
array_z<jupyter_output><empty_output><jupyter_text>To set all values of column 1 to 9 , we enter the command below. We have changed the fourth element of the first row from 5 to 9<jupyter_code>array_z[:,1]=9

array_z<jupyter_output><empty_output><jupyter_text>We want to now set all values of row 0 to 3<jupyter_code>array_z[0]=3
array_z<jupyter_output><empty_output><jupyter_text>We want to now set entire rows of an array to a list<jupyter_code>someList=array_z[0]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12366230677764566, 'fraction_numerical': 0.04280618311533888, 'mean_word_length': 9.144578313253012, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '665179', 'license': 'MIT', 'n_tokens_mistral': 360, 'n_tokens_neox': 351, 'n_words': 75, 'path': '.ipynb_checkpoints/Numpy Practice-checkpoint.ipynb', 'repo_name': 'PatrickAttankurugu/numpy', 'size': '841'}