<jupyter_start><jupyter_text>np.concatenate((a1, a2, ...), axis = 0, out = None)axis에 따라 행렬을 합친다<jupyter_code>a = np.array([[1,2],[3,4]])
a
b = np.array([[5,6],[7,8]])
b
ab0 = np.concatenate((a,b), axis = 0)
ab0
ab1 = np.concatenate((a,b), axis = 1)
ab1<jupyter_output><empty_output><jupyter_text>np.vstacknp.concatenate에서 axis = 0와 같음<jupyter_code>np.vstack((a,b))<jupyter_output><empty_output><jupyter_text>np.hstacknp.concatenate에서 axis = 1와 같음<jupyter_code>np.hstack((a,b))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20118343195266272, 'fraction_numerical': 0.03747534516765286, 'mean_word_length': 8.236363636363636, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '345725', 'license': 'MIT', 'n_tokens_mistral': 265, 'n_tokens_neox': 271, 'n_words': 30, 'path': 'Numpy/concatenate, vstack, hstack.ipynb', 'repo_name': 'IzPerfect/My-dictionary', 'size': '507'}