<jupyter_start><jupyter_text>Uploading The dataset<jupyter_code>import pandas as pd
dataset = pd.read_csv("breast-cancer-wisconsin.txt", sep= ',', header = None)
dataset.columns = ["sample_code_number", 
                       "clump_thickness", 
                       "uniformity_of_cell_size", 
                       "uniformity_of_cell_shape", 
                       "marginal_adhesion", 
                       "single_epithelial_cell_size", 
                       "bare_nuclei", 
                       "bland_chromatin", 
                       "normal_nucleoli", 
                       "mitosis", 
                       "classes"]
# TO be removed
dataset<jupyter_output><empty_output><jupyter_text>EDA<jupyter_code>dataset.info()<jupyter_output><class 'pandas.core.frame.DataFrame'>
RangeIndex: 699 entries, 0 to 698
Data columns (total 11 columns):
sample_code_number             699 non-null int64
clump_thickness                699 non-null int64
uniformity_of_cell_size        699 non-null int64
uniformity_of_cell_shape       699 non-null int64
marginal_adhesion              699 non-null int64
single_epithelial_cell_size    699 non-null int64
bare_nuclei                    699 non-null object
bland_chromatin                699 non-null int64
normal_nucleoli                699 non-null int64
mitosis                        699 non-null int64
classes                        699 non-null int64
dtypes: int64(10), object(1)
memory usage: 60.2+ KB<jupyter_text>No null values are dedected, but column bare_nuclei contains non integer values.<jupyter_code>len(dataset[~ dataset['bare_nuclei'].str.isnumeric()])<jupyter_output><empty_output><jupyter_text>We have 16 observations with unknown values for the bare_nuclei feature. For now, I will keep them as they are.<jupyter_code>dataset.describe()
dataset['bare_nuclei']<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07766470273165506, 'fraction_numerical': 0.0385645420460632, 'mean_word_length': 2.4275229357798165, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '122584', 'license': 'MIT', 'n_tokens_mistral': 639, 'n_tokens_neox': 536, 'n_words': 122, 'path': 'Analysis.ipynb', 'repo_name': 'EitharAlfatih/Breast-Cancer-Analysis', 'size': '1867'}