<jupyter_start><jupyter_text>ndarry运算<jupyter_code>test_score[test_score > 60] = 1
test_score
np.any(test_score > 90)
np.all(test_score > 90)
temp = score[:4 ,:4]
temp
np.where(temp>60 , 1, 0)
temp1 = score[:4,:4]
temp1
np.max(temp,axis=1)
np.argmax(temp, axis=1)<jupyter_output><empty_output><jupyter_text>数组间的运算<jupyter_code>arr1 = np.array([[1,2,3,4],[5,6,7,8]])
arr1 + 1
lista = [1 ,2, 3, 4]
lista + 1 
arr1 / 2
lista / 2
arr1 = np.array([[1,2,3,4],[5,6,7,8]])
arr2 = np.array([[1,2,3,4],[5,6,7,8]])
arr1 + arr2<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.22018348623853212, 'fraction_numerical': 0.10642201834862386, 'mean_word_length': 7.029411764705882, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '504666', 'license': 'MIT', 'n_tokens_mistral': 303, 'n_tokens_neox': 291, 'n_words': 41, 'path': 'numpytest/jupyter/test7.ipynb', 'repo_name': 'tjhlp/numpytest', 'size': '545'}