<jupyter_start><jupyter_text>d : 폴더, - : 파일list명령어 상세 출력결과 라인별 첫 단어 의미<jupyter_code>!ls
!ls -l
!pwd
!ls -l ./sample_data
!ls -l ./Wholesale_customers_data.csv
import pandas as pd
df = pd.read_excel('./wholesale.xls')
df.head(3)
Y = df['label']
X = df.iloc[:,1:9]
Y.shape, X.shape
from sklearn.tree import DecisionTreeClassifier
dtree = DecisionTreeClassifier()
dtree.fit(X,Y)
dtree.score(X,Y)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15639810426540285, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 5.409090909090909, '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': '125486', 'license': 'Apache-2.0', 'n_tokens_mistral': 208, 'n_tokens_neox': 224, 'n_words': 39, 'path': 'wholesale_decisiontreeclassification.ipynb', 'repo_name': 'yoonputer/leaning_machinelearning', 'size': '422'}