<jupyter_start><jupyter_text>Docstring shortcut 'Shift + Tab'<jupyter_code>odd_number_list = [1, 3, 5, 7]
np.array(odd_number_list)
two_dim_list = [[1, 1, 1], [2, 2, 2], [3, 3, 3]]
np.array(two_dim_list)
np.arange(0, 10, 2)
np.zeros(9)
np.zeros(3)
np.zeros((2, 3))
np.zeros((3, 2))
np.ones(3)
np.ones((2, 3))
np.linspace(0, 5, 5)
np.linspace(0, 10, 5)
np.linspace(0, 5, 10)
np.eye(3)
np.eye(9)
np.random.rand(3)
np.random.rand(7)
np.random.rand(3, 4)
np.random.randn(3)
np.random.randn(5)
np.random.randn(3, 5)
np.random.randint(0, 50, 20)
rand_arr = np.random.randint(0, 50, 20)
rand_arr
second_arr = np.arange(20)
second_arr
rand_arr.reshape(4, 5)
rand_arr.reshape(5, 4)
second_arr.reshape(2, 10)
second_arr.max()
second_arr.min()
second_arr.argmax()
rand_arr.max()
rand_arr.argmax()
rand_arr.min()
rand_arr.argmin()
second_arr.shape
reshaped_arr = second_arr.reshape(2, 10)
reshaped_arr
reshaped_arr.shape
reshaped_arr.dtype<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18704284221525602, 'fraction_numerical': 0.07210031347962383, 'mean_word_length': 6.203007518796992, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '324141', 'license': 'MIT', 'n_tokens_mistral': 509, 'n_tokens_neox': 469, 'n_words': 82, 'path': 'notebooks/Python3-DataScience/02-NumPy/01-NumPyArrays.ipynb', 'repo_name': 'binakot/Python3-Course', 'size': '957'}