<jupyter_start><jupyter_text>inspect general information of an array<jupyter_code>print(np.info(arr))<jupyter_output>class:  ndarray
shape:  (2, 3)
strides:  (24, 8)
itemsize:  8
aligned:  True
contiguous:  True
fortran:  False
data pointer: 0x1c9214b7150
byteorder:  little
byteswap:  False
type: int64
None<jupyter_text>inspect the data type of an array<jupyter_code>print(arr.dtype)<jupyter_output>int64<jupyter_text>inspect the dimension of an array<jupyter_code>print(arr.shape)<jupyter_output>(2, 3)<jupyter_text>inspect length of an array<jupyter_code>print(len(arr))<jupyter_output>2<jupyter_text>inspect the number of dimensions of an array<jupyter_code>print(arr.ndim)<jupyter_output>2<jupyter_text>inspect the number of elements in an array<jupyter_code>print(arr.size)<jupyter_output>6<jupyter_text>inspect the number of bytes of each element in an array<jupyter_code>print(arr.itemsize)<jupyter_output>8<jupyter_text>inspect the memory size of an array (in byte)<jupyter_code># arr.nbytes = arr.size * arr.itemsize
print(arr.nbytes)<jupyter_output>48
{'fraction_non_alphanumeric': 0.09877704609595485, 'fraction_numerical': 0.02634054562558796, 'mean_word_length': 9.23076923076923, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '506046', 'license': 'MIT', 'n_tokens_mistral': 442, 'n_tokens_neox': 422, 'n_words': 83, 'path': '2. Inspect an Array.ipynb', 'repo_name': 'therealhaseeb/Numpy-Tutorial', 'size': '1063'}