Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
!pip install plotly
Collecting plotly
Downloading plotly-5.0.0-py2.py3-none-any.whl (19.1 MB)
|████████████████████████████████| 19.1 MB 6.5 MB/s eta 0:00:01
Collecting tenacity>=6.2.0
Downloading tenacity-7.0.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: six in /opt/conda/lib/python3.9/site-packages (from plotly) (1.16.0)
Installing collected packages: tenacity, plotly
Successfully installed plotly-5.0.0 tenacity-7.0.0
import pandas as pd
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import plotly.express as px
%matplotlib inline
matplotlib.rcParams['figure.figsize']=(12,6)
matplotlib.rcParams['figure.facecolor']='#00000000'
matplotlib.rcParams['font.size']=14
matplotlib.rcParams['font.cursive']='Apple Chancery'
df=pd.read_csv('healthcare-dataset-stroke-data.csv')
df
The data above contains about 5110 rows and 12 columns.Our objective is ascertain the possible factors that can cause heart disease and stroke.