Visualizing the drug factors
Visualizing the drug factors#
import drug_database
db = drug_database.get_drug_factors()
import plotly.graph_objects as go
for drug_name, d in db.items():
fig = go.Figure([
go.Bar(name=k, x=tuple(d[k].keys()), y=tuple(d[k].values())) for k in ["1", "5", "10"]
])
fig.update_layout(legend={"title": "Times FPC"}, title=drug_name)
fig.update_yaxes(type="log")
fig.show()