<jupyter_start><jupyter_text>Python NumPy Array Conctination and Split<jupyter_code>> ### . 1) NumPy concatenate - np.concatenate()
> ### . 2) NumPy vstack - np.vstack()
> ### . 3) NumPy hstack - np.hstack()
> ### . 4) NumPy split - np.split()
import numpy as np 
arr1=np.arange(1,17).reshape(4,4)
arr1
arr2=np.arange(17,33).reshape(4,4)
list1 =[3,2,1]
list2 =[3,3,4]
list1+list2
arr1 + arr2
np.concatenate((arr1,arr2)) # columns wise

print(arr1,arr2)
np.concatenate((arr1,arr2),axis=1) # 1 mean row
np.vstack((arr1,arr2)) # vertical stack
np.hstack((arr1,arr2))
np.hstack((arr1,arr2,arr1))
# cloumns wise split because we have not given  any axis
list1=np.split(arr1,2) # divie array two two parts the output we will get will be list 
type(list1)
list1[0] # element inside list is array type 
type(list1[0])
# axis wise  split 1 mean x - axis 

np.split(arr1,2,axis=1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15888888888888889, 'fraction_numerical': 0.06333333333333334, 'mean_word_length': 5.171232876712328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '193858', 'license': 'MIT', 'n_tokens_mistral': 390, 'n_tokens_neox': 379, 'n_words': 90, 'path': '6_Python NumPy Array Conctination and Split.ipynb', 'repo_name': 'haseebi/Numpy', 'size': '900'}