diff --git a/python/analysis-vis/DrugUseExploration.ipynb b/python/analysis-vis/DrugUseExploration.ipynb new file mode 100644 index 0000000..2c1201b --- /dev/null +++ b/python/analysis-vis/DrugUseExploration.ipynb @@ -0,0 +1,3954 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Exploring Visualizations for the Medicare Part D Data\n", + "\n", + "We're going to explore the Medicare Part D data using the VA classifications to find out what the most prescribed drug classes are and what the most expensive drug classes are, then we can go from there.\n", + "\n", + "### Imports" + ] + }, + { + "cell_type": "code", + "execution_count": 133, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "import seaborn as sns\n", + "\n", + "import numpy as np\n", + "import pandas as pd" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### The Data\n", + "\n", + "We're going to need the Medicare Part D data. Let's start just with one year, the last one:" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "partd = pd.read_csv('https://query.data.world/s/do73dnhtplgxpfdb9j0y11mzg')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | Unnamed: 0 | \n", + "drugname_brand | \n", + "drugname_generic | \n", + "claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "1ST TIER UNIFINE PENTIPS | \n", + "PEN NEEDLE, DIABETIC | \n", + "10749 | \n", + "257895.63 | \n", + "5173.0 | \n", + "49.854172 | \n", + "1335132.0 | \n", + "0.193205 | \n", + "2878.0 | \n", + "27.305271 | \n", + "2295.0 | \n", + "3.987891 | \n", + "
1 | \n", + "1 | \n", + "1ST TIER UNIFINE PENTIPS PLUS | \n", + "PEN NEEDLE, DIABETIC | \n", + "2943 | \n", + "73396.65 | \n", + "1470.0 | \n", + "49.929694 | \n", + "369886.0 | \n", + "0.198430 | \n", + "710.0 | \n", + "28.071930 | \n", + "760.0 | \n", + "3.510776 | \n", + "
2 | \n", + "2 | \n", + "ABACAVIR | \n", + "ABACAVIR SULFATE | \n", + "69216 | \n", + "24578834.46 | \n", + "9319.0 | \n", + "2637.496991 | \n", + "4424163.0 | \n", + "5.555590 | \n", + "2046.0 | \n", + "236.941960 | \n", + "7273.0 | \n", + "6.146343 | \n", + "
3 | \n", + "3 | \n", + "ABACAVIR-LAMIVUDINE-ZIDOVUDINE | \n", + "ABACAVIR/LAMIVUDINE/ZIDOVUDINE | \n", + "12216 | \n", + "16626213.80 | \n", + "1621.0 | \n", + "10256.763603 | \n", + "759933.0 | \n", + "21.878526 | \n", + "377.0 | \n", + "945.154324 | \n", + "1244.0 | \n", + "24.187428 | \n", + "
4 | \n", + "4 | \n", + "ABELCET | \n", + "AMPHOTERICIN B LIPID COMPLEX | \n", + "439 | \n", + "552847.75 | \n", + "102.0 | \n", + "5420.075980 | \n", + "47600.0 | \n", + "11.614449 | \n", + "68.0 | \n", + "303.140000 | \n", + "34.0 | \n", + "31.550000 | \n", + "
\n", + " | Unnamed: 0 | \n", + "drugname_brand | \n", + "drugname_generic | \n", + "claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "1st tier unifine pentips | \n", + "pen needle, diabetic | \n", + "10749 | \n", + "257895.63 | \n", + "5173.0 | \n", + "49.854172 | \n", + "1335132.0 | \n", + "0.193205 | \n", + "2878.0 | \n", + "27.305271 | \n", + "2295.0 | \n", + "3.987891 | \n", + "
1 | \n", + "1 | \n", + "1st tier unifine pentips plus | \n", + "pen needle, diabetic | \n", + "2943 | \n", + "73396.65 | \n", + "1470.0 | \n", + "49.929694 | \n", + "369886.0 | \n", + "0.198430 | \n", + "710.0 | \n", + "28.071930 | \n", + "760.0 | \n", + "3.510776 | \n", + "
2 | \n", + "2 | \n", + "abacavir | \n", + "abacavir sulfate | \n", + "69216 | \n", + "24578834.46 | \n", + "9319.0 | \n", + "2637.496991 | \n", + "4424163.0 | \n", + "5.555590 | \n", + "2046.0 | \n", + "236.941960 | \n", + "7273.0 | \n", + "6.146343 | \n", + "
3 | \n", + "3 | \n", + "abacavir-lamivudine-zidovudine | \n", + "abacavir/lamivudine/zidovudine | \n", + "12216 | \n", + "16626213.80 | \n", + "1621.0 | \n", + "10256.763603 | \n", + "759933.0 | \n", + "21.878526 | \n", + "377.0 | \n", + "945.154324 | \n", + "1244.0 | \n", + "24.187428 | \n", + "
4 | \n", + "4 | \n", + "abelcet | \n", + "amphotericin b lipid complex | \n", + "439 | \n", + "552847.75 | \n", + "102.0 | \n", + "5420.075980 | \n", + "47600.0 | \n", + "11.614449 | \n", + "68.0 | \n", + "303.140000 | \n", + "34.0 | \n", + "31.550000 | \n", + "
\n", + " | #drugname_brand | \n", + "drugname_generic | \n", + "RXCUI | \n", + "drug_major_class | \n", + "dmc_string | \n", + "drug_class | \n", + "dc_string | \n", + "dmc_name | \n", + "dc_name | \n", + "
---|---|---|---|---|---|---|---|---|---|
0 | \n", + "10 wash | \n", + "sulfacetamide sodium | \n", + "10169 | \n", + "0|DE000|OP000 | \n", + "NaN | \n", + "0|DE101|OP210 | \n", + "NaN | \n", + "UNKNOWN/MISSING|DERMATOLOGICAL AGENTS|OPHTHALM... | \n", + "UNKNOWN/MISSING|ANTI-INFECTIVE,TOPICAL|ANTI-IN... | \n", + "
1 | \n", + "1st tier unifine pentips | \n", + "pen needle, diabetic | \n", + "0.0 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
2 | \n", + "1st tier unifine pentips plus | \n", + "pen needle, diabetic | \n", + "0.0 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
3 | \n", + "60pse-400gfn-20dm | \n", + "guaifenesin/dm/pseudoephedrine | \n", + "5032|8896 | \n", + "RE000 | \n", + "NaN | \n", + "RE200|RE302 | \n", + "NaN | \n", + "RESPIRATORY TRACT MEDICATIONS | \n", + "DECONGESTANTS,SYSTEMIC|ANTITUSSIVES/EXPECTORANTS | \n", + "
4 | \n", + "8-mop | \n", + "methoxsalen | \n", + "6854|227713 | \n", + "DE000 | \n", + "NaN | \n", + "DE810 | \n", + "NaN | \n", + "DERMATOLOGICAL AGENTS | \n", + "ANTIPSORIATIC | \n", + "
5 | \n", + "a-b otic | \n", + "antipyrine/benzocaine | \n", + "1399 | \n", + "NT000|OT000 | \n", + "NaN | \n", + "NT300|OT400 | \n", + "NaN | \n", + "NASAL AND THROAT AGENTS,TOPICAL|OTIC AGENTS | \n", + "ANESTHETICS,MUCOSAL|ANALGESICS,TOPICAL OTIC | \n", + "
6 | \n", + "abacavir | \n", + "abacavir sulfate | \n", + "190521|190521 | \n", + "AM000 | \n", + "NaN | \n", + "AM800 | \n", + "NaN | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
7 | \n", + "abacavir-lamivudine-zidovudine | \n", + "abacavir/lamivudine/zidovudine | \n", + "190521|68244|11413 | \n", + "AM000 | \n", + "NaN | \n", + "AM800 | \n", + "NaN | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
8 | \n", + "abelcet | \n", + "amphotericin b lipid complex | \n", + "81507 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
9 | \n", + "abilify | \n", + "aripiprazole | \n", + "89013|352393 | \n", + "CN000 | \n", + "NaN | \n", + "CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANTIPSYCHOTICS | \n", + "
10 | \n", + "abilify discmelt | \n", + "aripiprazole | \n", + "89013|352393 | \n", + "CN000 | \n", + "NaN | \n", + "CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANTIPSYCHOTICS | \n", + "
11 | \n", + "abilify maintena | \n", + "aripiprazole | \n", + "89013|352393 | \n", + "CN000 | \n", + "NaN | \n", + "CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANTIPSYCHOTICS | \n", + "
12 | \n", + "abraxane | \n", + "paclitaxel protein-bound | \n", + "56946|589511 | \n", + "AN000 | \n", + "NaN | \n", + "AN900 | \n", + "NaN | \n", + "ANTINEOPLASTICS | \n", + "ANTINEOPLASTIC,OTHER | \n", + "
13 | \n", + "absorica | \n", + "isotretinoin | \n", + "6064|1299198 | \n", + "DE000 | \n", + "NaN | \n", + "0|DE751 | \n", + "NaN | \n", + "DERMATOLOGICAL AGENTS | \n", + "UNKNOWN/MISSING|ANTIACNE AGENTS | \n", + "
14 | \n", + "abstral | \n", + "fentanyl citrate | \n", + "4337|1053648 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN101 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANALGESICS | \n", + "
15 | \n", + "acamprosate calcium | \n", + "acamprosate calcium | \n", + "82819|82819 | \n", + "AD000 | \n", + "NaN | \n", + "AD100 | \n", + "NaN | \n", + "ANTIDOTES,DETERRENTS AND POISON CONTROL | \n", + "ALCOHOL DETERRENTS | \n", + "
16 | \n", + "acanya | \n", + "clindamycin phos/benzoyl perox | \n", + "2582|810005 | \n", + "0|AM000|DE000|GU000 | \n", + "NaN | \n", + "0|AM350|DE752|GU300 | \n", + "NaN | \n", + "UNKNOWN/MISSING|ANTIMICROBIALS|DERMATOLOGICAL ... | \n", + "UNKNOWN/MISSING|LINCOMYCINS|ANTIACNE AGENTS|AN... | \n", + "
17 | \n", + "acarbose | \n", + "acarbose | \n", + "16681|16681 | \n", + "HS000 | \n", + "NaN | \n", + "HS502 | \n", + "NaN | \n", + "HORMONES/SYNTHETICS/MODIFIERS | \n", + "BLOOD GLUCOSE REGULATION AGENTS | \n", + "
18 | \n", + "accolate | \n", + "zafirlukast | \n", + "114970|135092 | \n", + "RE000 | \n", + "NaN | \n", + "RE109 | \n", + "NaN | \n", + "RESPIRATORY TRACT MEDICATIONS | \n", + "ANTIASTHMA/BRONCHODILATORS | \n", + "
19 | \n", + "accuneb | \n", + "albuterol sulfate | \n", + "435|352394 | \n", + "0|RE000 | \n", + "NaN | \n", + "0|RE102|RE103 | \n", + "NaN | \n", + "UNKNOWN/MISSING|RESPIRATORY TRACT MEDICATIONS | \n", + "UNKNOWN/MISSING|ANTIASTHMA/BRONCHODILATORS|ANT... | \n", + "
20 | \n", + "accupril | \n", + "quinapril hcl | \n", + "35208|72210 | \n", + "CV000 | \n", + "NaN | \n", + "CV800 | \n", + "NaN | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "ACE INHIBITORS | \n", + "
21 | \n", + "accuretic | \n", + "quinapril/hydrochlorothiazide | \n", + "35208|5487|151293 | \n", + "CV000 | \n", + "NaN | \n", + "CV701|CV800 | \n", + "NaN | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "DIURETICS|ACE INHIBITORS | \n", + "
22 | \n", + "accusure | \n", + "syring w-ndl,disp,insul,0.5 ml | \n", + "0.0 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
23 | \n", + "accusure | \n", + "syringe and needle,insulin,1ml | \n", + "0.0 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
24 | \n", + "acebutolol hcl | \n", + "acebutolol hcl | \n", + "149|149 | \n", + "CV000 | \n", + "NaN | \n", + "CV100 | \n", + "NaN | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "BETA BLOCKERS/RELATED | \n", + "
25 | \n", + "aceon | \n", + "perindopril erbumine | \n", + "54552|261438 | \n", + "CV000 | \n", + "NaN | \n", + "CV800 | \n", + "NaN | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "ACE INHIBITORS | \n", + "
26 | \n", + "acetaminoph-caff-dihydrocodein | \n", + "dhcodeine bt/acetaminophn/caff | \n", + "0.0 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
27 | \n", + "acetaminophen-codeine | \n", + "acetaminophen with codeine | \n", + "161 | \n", + "CN000 | \n", + "NaN | \n", + "CN103 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANALGESICS | \n", + "
28 | \n", + "acetasol hc | \n", + "acetic acid/hydrocortisone | \n", + "5492 | \n", + "0|DE000|HS000|RS000 | \n", + "NaN | \n", + "0|DE200|HS051|RS100|RS202 | \n", + "NaN | \n", + "UNKNOWN/MISSING|DERMATOLOGICAL AGENTS|HORMONES... | \n", + "UNKNOWN/MISSING|ANTI-INFLAMMATORY,TOPICAL|ADRE... | \n", + "
29 | \n", + "acetazolamide | \n", + "acetazolamide | \n", + "167|167 | \n", + "CV000 | \n", + "NaN | \n", + "CV703 | \n", + "NaN | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "DIURETICS | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
4468 | \n", + "zortress | \n", + "everolimus | \n", + "141704|977428 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4469 | \n", + "zorvolex | \n", + "diclofenac submicronized | \n", + "3355|1442117 | \n", + "0|DE000|MS000|OP000 | \n", + "NaN | \n", + "0|DE600|MS102|OP300 | \n", + "NaN | \n", + "UNKNOWN/MISSING|DERMATOLOGICAL AGENTS|MUSCULOS... | \n", + "UNKNOWN/MISSING|ANTINEOPLASTIC,TOPICAL|ANTIRHE... | \n", + "
4470 | \n", + "zostavax | \n", + "zoster vaccine live/pf | \n", + "658273 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4471 | \n", + "zosyn | \n", + "piperacillin sodium/tazobactam | \n", + "8339|37617|74170 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4472 | \n", + "zosyn | \n", + "piperacillin-tazo-dextrose,iso | \n", + "74170 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4473 | \n", + "zovia 1-35e | \n", + "ethynodiol d-ethinyl estradiol | \n", + "24591 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4474 | \n", + "zovia 1-50e | \n", + "ethynodiol d-ethinyl estradiol | \n", + "24591 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4475 | \n", + "zovirax | \n", + "acyclovir | \n", + "281|152535 | \n", + "AM000|DE000 | \n", + "NaN | \n", + "AM800|DE103 | \n", + "NaN | \n", + "ANTIMICROBIALS|DERMATOLOGICAL AGENTS | \n", + "ANTIVIRALS|ANTI-INFECTIVE,TOPICAL | \n", + "
4476 | \n", + "z-tuss ac | \n", + "chlorpheniramine/codeine phos | \n", + "2400|2670 | \n", + "AH000|CN000 | \n", + "NaN | \n", + "AH104|CN101 | \n", + "NaN | \n", + "ANTIHISTAMINES|CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANTIHISTAMINES,ALKYLAMINE|ANALGESICS | \n", + "
4477 | \n", + "z-tuss dm | \n", + "guaifenesin/d-methorphan hb/pe | \n", + "5032 | \n", + "RE000 | \n", + "NaN | \n", + "RE302 | \n", + "NaN | \n", + "RESPIRATORY TRACT MEDICATIONS | \n", + "ANTITUSSIVES/EXPECTORANTS | \n", + "
4478 | \n", + "zubsolv | \n", + "buprenorphine hcl/naloxone hcl | \n", + "1819|7242|1431077 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN101|CN102 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANALGESICS|ANALGESICS | \n", + "
4479 | \n", + "zuplenz | \n", + "ondansetron | \n", + "26225|998029 | \n", + "GA000 | \n", + "NaN | \n", + "GA605 | \n", + "NaN | \n", + "GASTROINTESTINAL MEDICATIONS | \n", + "ANTIEMETICS | \n", + "
4480 | \n", + "zutripro | \n", + "hydrocodone/cpm/pseudoephed | \n", + "5489|1112221 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4481 | \n", + "zyban | \n", + "bupropion hcl | \n", + "42347|227948 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN609 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANTIDEPRESSANTS | \n", + "
4482 | \n", + "zyclara | \n", + "imiquimod | \n", + "59943|967018 | \n", + "IM000 | \n", + "NaN | \n", + "0|IM900 | \n", + "NaN | \n", + "IMMUNOLOGICAL AGENTS | \n", + "UNKNOWN/MISSING|IMMUNOLOGICAL AGENTS,OTHER | \n", + "
4483 | \n", + "zydelig | \n", + "idelalisib | \n", + "1544460|1544466 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4484 | \n", + "zydone | \n", + "hydrocodone/acetaminophen | \n", + "5489|161|221046 | \n", + "CN000 | \n", + "NaN | \n", + "CN103 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "ANALGESICS | \n", + "
4485 | \n", + "zyflo | \n", + "zileuton | \n", + "40575|221047 | \n", + "RE000 | \n", + "NaN | \n", + "RE109 | \n", + "NaN | \n", + "RESPIRATORY TRACT MEDICATIONS | \n", + "ANTIASTHMA/BRONCHODILATORS | \n", + "
4486 | \n", + "zyflo cr | \n", + "zileuton | \n", + "40575|221047 | \n", + "RE000 | \n", + "NaN | \n", + "RE109 | \n", + "NaN | \n", + "RESPIRATORY TRACT MEDICATIONS | \n", + "ANTIASTHMA/BRONCHODILATORS | \n", + "
4487 | \n", + "zykadia | \n", + "ceritinib | \n", + "1535457|1535463 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4488 | \n", + "zylet | \n", + "tobramycin/lotepred etab | \n", + "10627|545256 | \n", + "AM000|OP000|RE000 | \n", + "NaN | \n", + "AM300|OP210|RE900 | \n", + "NaN | \n", + "ANTIMICROBIALS|OPHTHALMIC AGENTS|RESPIRATORY T... | \n", + "AMINOGLYCOSIDES|ANTI-INFECTIVE,TOPICAL OPHTHAL... | \n", + "
4489 | \n", + "zyloprim | \n", + "allopurinol | \n", + "519|203600 | \n", + "MS000 | \n", + "NaN | \n", + "MS400 | \n", + "NaN | \n", + "MUSCULOSKELETAL MEDICATIONS | \n", + "ANTIGOUT AGENTS | \n", + "
4490 | \n", + "zymar | \n", + "gatifloxacin | \n", + "228476 | \n", + "0|OP000 | \n", + "NaN | \n", + "0|OP210 | \n", + "NaN | \n", + "UNKNOWN/MISSING|OPHTHALMIC AGENTS | \n", + "UNKNOWN/MISSING|ANTI-INFECTIVE,TOPICAL OPHTHALMIC | \n", + "
4491 | \n", + "zymaxid | \n", + "gatifloxacin | \n", + "228476|992396 | \n", + "0|OP000 | \n", + "NaN | \n", + "0|OP210 | \n", + "NaN | \n", + "UNKNOWN/MISSING|OPHTHALMIC AGENTS | \n", + "UNKNOWN/MISSING|ANTI-INFECTIVE,TOPICAL OPHTHALMIC | \n", + "
4492 | \n", + "zyprexa | \n", + "olanzapine | \n", + "61381|135423 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANTIPSYCHOTICS | \n", + "
4493 | \n", + "zyprexa relprevv | \n", + "olanzapine pamoate | \n", + "61381|135423 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANTIPSYCHOTICS | \n", + "
4494 | \n", + "zyprexa zydis | \n", + "olanzapine | \n", + "61381|135423 | \n", + "CN000 | \n", + "NaN | \n", + "0|CN709 | \n", + "NaN | \n", + "CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "UNKNOWN/MISSING|ANTIPSYCHOTICS | \n", + "
4495 | \n", + "zyrtec-d | \n", + "cetirizine hcl/pseudoephedrine | \n", + "20610|8896|353102 | \n", + "AH000|RE000 | \n", + "NaN | \n", + "AH105|RE200 | \n", + "NaN | \n", + "ANTIHISTAMINES|RESPIRATORY TRACT MEDICATIONS | \n", + "ANTIHISTAMINES,PIPERAZINE|DECONGESTANTS,SYSTEMIC | \n", + "
4496 | \n", + "zytiga | \n", + "abiraterone acetate | \n", + "1100072|1100076 | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "NaN | \n", + "0 | \n", + "0 | \n", + "
4497 | \n", + "zyvox | \n", + "linezolid | \n", + "190376|261710 | \n", + "AM000 | \n", + "NaN | \n", + "AM900 | \n", + "NaN | \n", + "ANTIMICROBIALS | \n", + "ANTI-INFECTIVES,OTHER | \n", + "
4498 rows × 9 columns
\n", + "\n", + " | Unnamed: 0 | \n", + "drugname_brand | \n", + "drugname_generic | \n", + "claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "drug_major_class | \n", + "drug_class | \n", + "dmc_name | \n", + "dc_name | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "1st tier unifine pentips | \n", + "pen needle, diabetic | \n", + "10749 | \n", + "257895.63 | \n", + "5173.0 | \n", + "49.854172 | \n", + "1335132.0 | \n", + "0.193205 | \n", + "2878.0 | \n", + "27.305271 | \n", + "2295.0 | \n", + "3.987891 | \n", + "0 | \n", + "0 | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
1 | \n", + "1 | \n", + "1st tier unifine pentips plus | \n", + "pen needle, diabetic | \n", + "2943 | \n", + "73396.65 | \n", + "1470.0 | \n", + "49.929694 | \n", + "369886.0 | \n", + "0.198430 | \n", + "710.0 | \n", + "28.071930 | \n", + "760.0 | \n", + "3.510776 | \n", + "0 | \n", + "0 | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
2 | \n", + "2 | \n", + "abacavir | \n", + "abacavir sulfate | \n", + "69216 | \n", + "24578834.46 | \n", + "9319.0 | \n", + "2637.496991 | \n", + "4424163.0 | \n", + "5.555590 | \n", + "2046.0 | \n", + "236.941960 | \n", + "7273.0 | \n", + "6.146343 | \n", + "AM000 | \n", + "AM800 | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
3 | \n", + "3 | \n", + "abacavir-lamivudine-zidovudine | \n", + "abacavir/lamivudine/zidovudine | \n", + "12216 | \n", + "16626213.80 | \n", + "1621.0 | \n", + "10256.763603 | \n", + "759933.0 | \n", + "21.878526 | \n", + "377.0 | \n", + "945.154324 | \n", + "1244.0 | \n", + "24.187428 | \n", + "AM000 | \n", + "AM800 | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
4 | \n", + "4 | \n", + "abelcet | \n", + "amphotericin b lipid complex | \n", + "439 | \n", + "552847.75 | \n", + "102.0 | \n", + "5420.075980 | \n", + "47600.0 | \n", + "11.614449 | \n", + "68.0 | \n", + "303.140000 | \n", + "34.0 | \n", + "31.550000 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
\n", + " | Unnamed: 0 | \n", + "drugname_brand | \n", + "drugname_generic | \n", + "claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "drug_major_class | \n", + "drug_class | \n", + "dmc_name | \n", + "dc_name | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "1st tier unifine pentips | \n", + "pen needle, diabetic | \n", + "10749 | \n", + "257895.63 | \n", + "5173.0 | \n", + "49.854172 | \n", + "1335132.0 | \n", + "0.193205 | \n", + "2878.0 | \n", + "27.305271 | \n", + "2295.0 | \n", + "3.987891 | \n", + "0 | \n", + "0 | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
1 | \n", + "1 | \n", + "1st tier unifine pentips plus | \n", + "pen needle, diabetic | \n", + "2943 | \n", + "73396.65 | \n", + "1470.0 | \n", + "49.929694 | \n", + "369886.0 | \n", + "0.198430 | \n", + "710.0 | \n", + "28.071930 | \n", + "760.0 | \n", + "3.510776 | \n", + "0 | \n", + "0 | \n", + "UNKNOWN/MISSING | \n", + "UNKNOWN/MISSING | \n", + "
2 | \n", + "2 | \n", + "abacavir | \n", + "abacavir sulfate | \n", + "69216 | \n", + "24578834.46 | \n", + "9319.0 | \n", + "2637.496991 | \n", + "4424163.0 | \n", + "5.555590 | \n", + "2046.0 | \n", + "236.941960 | \n", + "7273.0 | \n", + "6.146343 | \n", + "AM000 | \n", + "AM800 | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
3 | \n", + "3 | \n", + "abacavir-lamivudine-zidovudine | \n", + "abacavir/lamivudine/zidovudine | \n", + "12216 | \n", + "16626213.80 | \n", + "1621.0 | \n", + "10256.763603 | \n", + "759933.0 | \n", + "21.878526 | \n", + "377.0 | \n", + "945.154324 | \n", + "1244.0 | \n", + "24.187428 | \n", + "AM000 | \n", + "AM800 | \n", + "ANTIMICROBIALS | \n", + "ANTIVIRALS | \n", + "
4 | \n", + "4 | \n", + "abelcet | \n", + "amphotericin b lipid complex | \n", + "439 | \n", + "552847.75 | \n", + "102.0 | \n", + "5420.075980 | \n", + "47600.0 | \n", + "11.614449 | \n", + "68.0 | \n", + "303.140000 | \n", + "34.0 | \n", + "31.550000 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
\n", + " | claim_count | \n", + "
---|---|
dmc_name | \n", + "\n", + " |
0 | \n", + "79883523 | \n", + "
ANTIDOTES,DETERRENTS AND POISON CONTROL | \n", + "597424 | \n", + "
ANTIHISTAMINES | \n", + "6435919 | \n", + "
ANTIMICROBIALS | \n", + "84737290 | \n", + "
ANTINEOPLASTICS | \n", + "6300490 | \n", + "
ANTIPARASITICS | \n", + "2350112 | \n", + "
AUTONOMIC MEDICATIONS | \n", + "9639042 | \n", + "
BLOOD PRODUCTS/MODIFIERS/VOLUME EXPANDERS | \n", + "33792891 | \n", + "
CARDIOVASCULAR MEDICATIONS | \n", + "470267041 | \n", + "
CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "333097899 | \n", + "
DERMATOLOGICAL AGENTS | \n", + "46531194 | \n", + "
GASTROINTESTINAL MEDICATIONS | \n", + "79329271 | \n", + "
GENITOURINARY MEDICATIONS | \n", + "12655111 | \n", + "
HORMONES/SYNTHETICS/MODIFIERS | \n", + "140385660 | \n", + "
IMMUNOLOGICAL AGENTS | \n", + "2553364 | \n", + "
IRRIGATION/DIALYSIS SOLUTIONS | \n", + "24982 | \n", + "
MISCELLANEOUS AGENTS | \n", + "1012 | \n", + "
MUSCULOSKELETAL MEDICATIONS | \n", + "51355965 | \n", + "
NASAL AND THROAT AGENTS,TOPICAL | \n", + "7372025 | \n", + "
OPHTHALMIC AGENTS | \n", + "17364543 | \n", + "
RECTAL,LOCAL | \n", + "411 | \n", + "
RESPIRATORY TRACT MEDICATIONS | \n", + "28612355 | \n", + "
THERAPEUTIC NUTRIENTS/MINERALS/ELECTROLYTES | \n", + "46047 | \n", + "
UNKNOWN/MISSING | \n", + "32490216 | \n", + "
VITAMINS | \n", + "2639607 | \n", + "
\n", + " | user_count_lowincome | \n", + "
---|---|
dmc_name | \n", + "\n", + " |
0 | \n", + "8573645.0 | \n", + "
ANTIDOTES,DETERRENTS AND POISON CONTROL | \n", + "149352.0 | \n", + "
ANTIHISTAMINES | \n", + "1152058.0 | \n", + "
ANTIMICROBIALS | \n", + "18732599.0 | \n", + "
ANTINEOPLASTICS | \n", + "357887.0 | \n", + "
\n", + " | claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "
---|---|---|---|---|---|---|---|---|---|---|
dmc_name | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
ANTIDOTES,DETERRENTS AND POISON CONTROL | \n", + "597424 | \n", + "3.315259e+08 | \n", + "228718.0 | \n", + "19500.197143 | \n", + "3.788590e+07 | \n", + "93.222918 | \n", + "79165.0 | \n", + "971.951272 | \n", + "149352.0 | \n", + "16.969592 | \n", + "
ANTIHISTAMINES | \n", + "6435919 | \n", + "1.409777e+08 | \n", + "2039623.0 | \n", + "327.812783 | \n", + "4.091644e+08 | \n", + "2.368796 | \n", + "887448.0 | \n", + "68.719766 | \n", + "1152058.0 | \n", + "4.822949 | \n", + "
ANTIMICROBIALS | \n", + "84737290 | \n", + "6.829379e+09 | \n", + "51985674.0 | \n", + "1987.000332 | \n", + "2.593541e+09 | \n", + "15.479560 | \n", + "33252312.0 | \n", + "225.134306 | \n", + "18732599.0 | \n", + "6.705091 | \n", + "
ANTINEOPLASTICS | \n", + "6300490 | \n", + "3.408084e+09 | \n", + "1477080.0 | \n", + "11416.427254 | \n", + "2.861639e+08 | \n", + "351.310883 | \n", + "1118851.0 | \n", + "882.492539 | \n", + "357887.0 | \n", + "25.220989 | \n", + "
ANTIPARASITICS | \n", + "2350112 | \n", + "4.384229e+08 | \n", + "705211.0 | \n", + "1916.125671 | \n", + "1.852337e+08 | \n", + "25.970199 | \n", + "416720.0 | \n", + "125.413762 | \n", + "288454.0 | \n", + "4.808811 | \n", + "
AUTONOMIC MEDICATIONS | \n", + "9639042 | \n", + "6.602443e+08 | \n", + "2716136.0 | \n", + "1661.904604 | \n", + "7.148826e+08 | \n", + "20.705055 | \n", + "1412399.0 | \n", + "147.814115 | \n", + "1303588.0 | \n", + "6.245196 | \n", + "
BLOOD PRODUCTS/MODIFIERS/VOLUME EXPANDERS | \n", + "33792891 | \n", + "1.367068e+09 | \n", + "6012762.0 | \n", + "15283.134605 | \n", + "1.652406e+09 | \n", + "416.088981 | \n", + "4090765.0 | \n", + "371.490240 | \n", + "1921944.0 | \n", + "14.459852 | \n", + "
CARDIOVASCULAR MEDICATIONS | \n", + "470267041 | \n", + "1.687932e+10 | \n", + "96374371.0 | \n", + "2748.872419 | \n", + "2.863201e+10 | \n", + "10.302842 | \n", + "65814460.0 | \n", + "251.929488 | \n", + "30559435.0 | \n", + "15.405636 | \n", + "
CENTRAL NERVOUS SYSTEM MEDICATIONS | \n", + "333097899 | \n", + "2.103363e+10 | \n", + "67457648.0 | \n", + "3119.439890 | \n", + "2.222708e+10 | \n", + "36.708159 | \n", + "36676166.0 | \n", + "320.658209 | \n", + "30780802.0 | \n", + "13.851367 | \n", + "
DERMATOLOGICAL AGENTS | \n", + "46531194 | \n", + "5.654536e+09 | \n", + "20211318.0 | \n", + "841.578363 | \n", + "3.368787e+09 | \n", + "54.106188 | \n", + "12483844.0 | \n", + "108.109247 | \n", + "7726846.0 | \n", + "5.749881 | \n", + "
GASTROINTESTINAL MEDICATIONS | \n", + "79329271 | \n", + "4.707860e+09 | \n", + "19113141.0 | \n", + "2376.914529 | \n", + "6.579517e+09 | \n", + "106.542201 | \n", + "10874669.0 | \n", + "210.003024 | \n", + "8238120.0 | \n", + "11.297297 | \n", + "
GENITOURINARY MEDICATIONS | \n", + "12655111 | \n", + "2.916130e+09 | \n", + "3122774.0 | \n", + "2300.471775 | \n", + "8.604375e+08 | \n", + "20.577954 | \n", + "2008716.0 | \n", + "297.644847 | \n", + "1114028.0 | \n", + "13.335226 | \n", + "
HORMONES/SYNTHETICS/MODIFIERS | \n", + "140385660 | \n", + "1.058950e+10 | \n", + "33410477.0 | \n", + "3701.194185 | \n", + "9.527427e+09 | \n", + "153.864212 | \n", + "22292310.0 | \n", + "314.965630 | \n", + "11117347.0 | \n", + "11.156144 | \n", + "
IMMUNOLOGICAL AGENTS | \n", + "2553364 | \n", + "3.170442e+09 | \n", + "800862.0 | \n", + "11424.818750 | \n", + "1.866866e+08 | \n", + "150.736589 | \n", + "516753.0 | \n", + "877.610676 | \n", + "284109.0 | \n", + "28.202339 | \n", + "
IRRIGATION/DIALYSIS SOLUTIONS | \n", + "24982 | \n", + "5.315573e+05 | \n", + "8289.0 | \n", + "64.128038 | \n", + "6.907524e+07 | \n", + "0.007695 | \n", + "4233.0 | \n", + "17.300529 | \n", + "4056.0 | \n", + "1.587325 | \n", + "
MISCELLANEOUS AGENTS | \n", + "1012 | \n", + "2.030906e+07 | \n", + "146.0 | \n", + "139438.297444 | \n", + "3.880500e+05 | \n", + "46.583059 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
MUSCULOSKELETAL MEDICATIONS | \n", + "51355965 | \n", + "6.674490e+09 | \n", + "15893259.0 | \n", + "5109.370256 | \n", + "3.178534e+09 | \n", + "78.805431 | \n", + "8915721.0 | \n", + "354.312043 | \n", + "6977196.0 | \n", + "12.274631 | \n", + "
NASAL AND THROAT AGENTS,TOPICAL | \n", + "7372025 | \n", + "1.230483e+09 | \n", + "2492177.0 | \n", + "468.350955 | \n", + "2.268478e+08 | \n", + "16.803465 | \n", + "1302115.0 | \n", + "114.414219 | \n", + "1190000.0 | \n", + "7.415555 | \n", + "
OPHTHALMIC AGENTS | \n", + "17364543 | \n", + "1.683858e+09 | \n", + "4451530.0 | \n", + "804.372092 | \n", + "8.980011e+07 | \n", + "644.891415 | \n", + "3129049.0 | \n", + "158.648782 | \n", + "1322373.0 | \n", + "8.767086 | \n", + "
RECTAL,LOCAL | \n", + "411 | \n", + "2.089648e+07 | \n", + "47.0 | \n", + "444606.043620 | \n", + "1.604750e+05 | \n", + "130.216445 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
RESPIRATORY TRACT MEDICATIONS | \n", + "28612355 | \n", + "3.443193e+09 | \n", + "8397589.0 | \n", + "1528.319050 | \n", + "9.352016e+08 | \n", + "10.673278 | \n", + "4418519.0 | \n", + "201.437732 | \n", + "3979059.0 | \n", + "9.565228 | \n", + "
THERAPEUTIC NUTRIENTS/MINERALS/ELECTROLYTES | \n", + "46047 | \n", + "3.676429e+06 | \n", + "6084.0 | \n", + "1031.783177 | \n", + "8.228677e+06 | \n", + "0.508882 | \n", + "1484.0 | \n", + "132.436077 | \n", + "4562.0 | \n", + "12.385925 | \n", + "
VITAMINS | \n", + "2639607 | \n", + "2.705808e+08 | \n", + "571392.0 | \n", + "688.748042 | \n", + "1.240293e+08 | \n", + "10.925393 | \n", + "344356.0 | \n", + "120.061263 | \n", + "226846.0 | \n", + "7.855833 | \n", + "
\n", + " | Unnamed: 0 | \n", + "drugname_brand | \n", + "drugname_generic | \n", + "claim_count | \n", + "total_spending | \n", + "user_count | \n", + "total_spending_per_user | \n", + "unit_count | \n", + "unit_cost_wavg | \n", + "user_count_non_lowincome | \n", + "out_of_pocket_avg_non_lowincome | \n", + "user_count_lowincome | \n", + "out_of_pocket_avg_lowincome | \n", + "drug_major_class | \n", + "drug_class | \n", + "dmc_name | \n", + "dc_name | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | \n", + "15 | \n", + "accupril | \n", + "quinapril hcl | \n", + "5762 | \n", + "1129256.33 | \n", + "1089.0 | \n", + "1036.966327 | \n", + "3.875800e+05 | \n", + "2.913666 | \n", + "903.0 | \n", + "335.850853 | \n", + "186.0 | \n", + "33.892849 | \n", + "CV000 | \n", + "CV800 | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "ACE INHIBITORS | \n", + "
16 | \n", + "16 | \n", + "accuretic | \n", + "quinapril/hydrochlorothiazide | \n", + "373 | \n", + "77105.43 | \n", + "91.0 | \n", + "847.312418 | \n", + "2.732000e+04 | \n", + "2.823054 | \n", + "72.0 | \n", + "333.760694 | \n", + "19.0 | \n", + "46.864737 | \n", + "CV000 | \n", + "CV701|CV800 | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "DIURETICS|ACE INHIBITORS | \n", + "
17 | \n", + "17 | \n", + "acebutolol hcl | \n", + "acebutolol hcl | \n", + "124036 | \n", + "2755575.75 | \n", + "23590.0 | \n", + "116.811181 | \n", + "1.096829e+07 | \n", + "0.251665 | \n", + "20411.0 | \n", + "58.861067 | \n", + "3179.0 | \n", + "10.510862 | \n", + "CV000 | \n", + "CV100 | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "BETA BLOCKERS/RELATED | \n", + "
20 | \n", + "20 | \n", + "acetazolamide | \n", + "acetazolamide | \n", + "300569 | \n", + "37170030.30 | \n", + "105306.0 | \n", + "352.971628 | \n", + "1.779603e+07 | \n", + "2.119760 | \n", + "70981.0 | \n", + "48.449797 | \n", + "34325.0 | \n", + "5.312822 | \n", + "CV000 | \n", + "CV703 | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "DIURETICS | \n", + "
46 | \n", + "46 | \n", + "adalat cc | \n", + "nifedipine | \n", + "2285 | \n", + "271566.58 | \n", + "442.0 | \n", + "614.404027 | \n", + "1.302640e+05 | \n", + "2.105196 | \n", + "313.0 | \n", + "296.988914 | \n", + "129.0 | \n", + "28.219147 | \n", + "CV000 | \n", + "CV200 | \n", + "CARDIOVASCULAR MEDICATIONS | \n", + "CALCIUM CHANNEL BLOCKERS | \n", + "