<jupyter_start><jupyter_text>welcome **Hello Dear friends**I welcome you to this Eda Notebook. This explores the heart faliure clinical data records dataset. it is gonna be fun. i hope you will enjoy using this notebook. this notebook is dedicated to my day 3-4 of my 100 days of code.  load the libraries. I will only need tidyverse for this time. Guess what i wil also need corrplot. 😓<jupyter_code>library(tidyverse)
library(corrplot) 
library()<jupyter_output><empty_output><jupyter_text>Data explorationLet us dig up the data and explore it. Oh and yes 1 good news it is a totally cleaned data.Data set link https://archive.ics.uci.edu/ml/machine-learning-databases/00519/heart_failure_clinical_records_dataset.csv<jupyter_code>x <- read.csv(url("https://archive.ics.uci.edu/ml/machine-learning-databases/00519/heart_failure_clinical_records_dataset.csv"))
x
dim(x)
summary(x)
nrow(x)
colnames(x)
str(x)<jupyter_output><empty_output><jupyter_text>visualizationIt is day 4 and I still have modelling to do. Hope to finish soon. 🙂👍😀😊😇. Feel like writing hello world and telling see i did hello world. fun fact i never wrote hello world as the first program i remember writing 2+2 in python intepreter.😛😝😜🤭🙃<jupyter_code>vizCol = function (x){
    c = 1
    for(i in x){
    if(length(unique(i)) == 2){
        pie(table(i),main=colnames(x)[c])
    }
    else{
        hist(i,main= colnames(x)[c],xlab= colnames(x)[c])
    }
        c = c+1
    } 
}  
vizCol(x)
cor(x, method = c("pearson"))
corrplot(cor(x, method = c("pearson"))) 
cor(x, method = c("kendall"))
corrplot(cor(x, method = c("kendall"))) 
cor(x, method = c("spearman"))
corrplot(cor(x, method = c("spearman")))<jupyter_output><empty_output><jupyter_text>I love experimenting and so does this interact function had thought about creating a better thing but vizCol already did that for me so it was interact-ive experiment time.<jupyter_code>interact = function (x){
    for(i in x){
        for(j in x){
            plot(i,j)
        }
    } 
} 
interact(x)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11738918655625913, 'fraction_numerical': 0.01071602532878714, 'mean_word_length': 4.462765957446808, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '147440', 'license': 'Apache-2.0', 'n_tokens_mistral': 749, 'n_tokens_neox': 711, 'n_words': 217, 'path': 'Day 3-6/EDA_R_DAY_3-4.ipynb', 'repo_name': 'Divyosmi/100-days-of-code', 'size': '2053'}