<jupyter_start><jupyter_text>행과 열 전환<jupyter_code>data1=np.transpose(data) #첫번째 행이 첫번째 열이됨
print(data1)
print(data.shape)
print(data1.shape)
xy=np.loadtxt('diabetes.csv',delimiter=',')
print(xy)
xdata=xy[:,0:-1]
ydata=xy[:,[-1]]
print(xdata)
# print(ydata)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1993006993006993, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 10.958333333333334, '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': '80277', 'license': 'MIT', 'n_tokens_mistral': 145, 'n_tokens_neox': 163, 'n_words': 16, 'path': '0907numpy03.ipynb', 'repo_name': 'dongkoull/Dataminning', 'size': '286'}