<jupyter_start><jupyter_text><jupyter_code><jupyter_output><empty_output><jupyter_text>How to create array in numpy<jupyter_code>import numpy as np
arr = np.array([1,2,3])
print(arr)<jupyter_output>[1 2 3]<jupyter_text>How to create 2D array<jupyter_code>arr2 =  np.array([[2,3,4],[2,3,4]])
print(arr2)<jupyter_output>[[2 3 4]
 [2 3 4]]<jupyter_text>How to add n number of rows and columns using inbuild function<jupyter_code>n_number = np.ones(2)
print(n_number)
type(n_number)
type(np.ones)
n_number.dtype
n_numbers = np.ones((2,3) , dtype = int)
print(n_numbers) 
n_numbers.dtype<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1454248366013072, 'fraction_numerical': 0.0392156862745098, 'mean_word_length': 8.73015873015873, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '287103', 'license': 'MIT', 'n_tokens_mistral': 278, 'n_tokens_neox': 266, 'n_words': 47, 'path': 'sneha2.ipynb', 'repo_name': 'sneha281/Python', 'size': '612'}