text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import plotly.express as px

import seaborn as sns

data = pd.read_csv('../input/memory-test-on-drugged-islanders-data/Islander_data.csv')

cleaned_data = data.copy()

fig = px.bar(cleaned_data, x="age", y="Mem_Score_Before", title="Mem_Score_Before over Age",
             color_discrete_sequence=['#F42272'])
fig.show()

fig = px.bar(cleaned_data, x="age", y="Mem_Score_After", title="Mem_Score_After over Age", 
              log_y=True, color_discrete_sequence=['#F42272'])
fig.show()

cleaned_data.Drug.unique()

fig = px.sunburst(cleaned_data.sort_values(by='age', ascending=False).reset_index(drop=True), path=['first_name'], values='Mem_Score_Before', height=700, title='Sunburst for Mem_Score_Before ', color_discrete_sequence=px.colors.qualitative.Prism)
fig.data[0].textinfo = 'label+text+value'

fig = px.bar(cleaned_data.sort_values('age', ascending=False)[:10][::-1], x='Mem_Score_Before', y='first_name', title='Patient with Higest Mem_Score_Before', text='Mem_Score_Before', orientation='h')
fig.show()