Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
import jovian
jovian.commit()
[jovian] Detected Colab notebook...
[jovian] Please enter your API key ( from https://jovian.ai/ ):
API KEY:
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
sns.set_style()
df = pd.read_csv('train_strokes.csv', encoding = 'utf-8')
df.head()
df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 43400 entries, 0 to 43399
Data columns (total 12 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 id 43400 non-null int64
1 gender 43400 non-null object
2 age 43400 non-null float64
3 hypertension 43400 non-null int64
4 heart_disease 43400 non-null int64
5 ever_married 43400 non-null object
6 work_type 43400 non-null object
7 Residence_type 43400 non-null object
8 avg_glucose_level 43400 non-null float64
9 bmi 41938 non-null float64
10 smoking_status 30108 non-null object
11 stroke 43400 non-null int64
dtypes: float64(3), int64(4), object(5)
memory usage: 4.0+ MB