<jupyter_start><jupyter_text>Set Difference Between Two Nupmy Arrays<jupyter_code># Function to take input array from user
def np_array_frm_input(prompt):
    try:
        arr = list(map(int, input(prompt).split()))
        np_array = np.array(arr, dtype=int)
    except ValueError as e:
        np_array = None
        print("ERROR: Please enter only integers !!!")
        print(e)
    return np_array
# Return the sorted, unique values in array1 that are not in array2
np_arr1 = np_array_frm_input("\nEnter numbers for first sequence: ")
np_arr2 = np_array_frm_input("\nEnter numbers for second sequence: ")
print(f"\nThe set difference between {np_arr1} and {np_arr2} is {np.setdiff1d(np_arr1, np_arr2)}")<jupyter_output>Enter numbers for first sequence:  6 4 2

Enter numbers for second sequence:  3 4
{'fraction_non_alphanumeric': 0.09305210918114144, 'fraction_numerical': 0.017369727047146403, 'mean_word_length': 4.240259740259741, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '137608', 'license': 'MIT', 'n_tokens_mistral': 271, 'n_tokens_neox': 265, 'n_words': 84, 'path': 'bits_wilp/Ex2_Numpy_Q2.ipynb', 'repo_name': 'deepak5998/Py', 'size': '806'}