1 line
654 KiB
Plaintext
1 line
654 KiB
Plaintext
|
{"cells":[{"cell_type":"markdown","metadata":{"id":"NnMXsHDsBh4V"},"source":["# Statistics about EWS in Mimic-iv-ED"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"7aPKx7T-Bh4a"},"outputs":[],"source":["import pandas as pd\n","import numpy as np\n","import matplotlib.pyplot as plt\n","import seaborn as sns\n"]},{"cell_type":"markdown","metadata":{"id":"NxmoUGL7Bh4c"},"source":["# reading vital sign ED csv"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"rN2QUHmbBh4d","outputId":"d7abe0af-73df-4a75-8493-e5688b2e40fe"},"outputs":[{"data":{"text/html":["<div>\n","<style scoped>\n"," .dataframe tbody tr th:only-of-type {\n"," vertical-align: middle;\n"," }\n","\n"," .dataframe tbody tr th {\n"," vertical-align: top;\n"," }\n","\n"," .dataframe thead th {\n"," text-align: right;\n"," }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n"," <thead>\n"," <tr style=\"text-align: right;\">\n"," <th></th>\n"," <th>subject_id</th>\n"," <th>stay_id</th>\n"," <th>charttime</th>\n"," <th>temperature</th>\n"," <th>heartrate</th>\n"," <th>resprate</th>\n"," <th>o2sat</th>\n"," <th>sbp</th>\n"," <th>dbp</th>\n"," <th>rhythm</th>\n"," <th>pain</th>\n"," </tr>\n"," </thead>\n"," <tbody>\n"," <tr>\n"," <th>0</th>\n"," <td>10000032</td>\n"," <td>32952584</td>\n"," <td>2180-07-22 16:36:00</td>\n"," <td>NaN</td>\n"," <td>83.0</td>\n"," <td>24.0</td>\n"," <td>97.0</td>\n"," <td>90.0</td>\n"," <td>51.0</td>\n"," <td>NaN</td>\n"," <td>0</td>\n"," </tr>\n"," <tr>\n"," <th>1</th>\n"," <td>10000032</td>\n"," <td>32952584</td>\n"," <td>2180-07-22 16:43:00</td>\n"," <td>NaN</td>\n"," <td>85.0</td>\n"," <td>22.0</td>\n"," <td>98.0</td>\n"," <td>76.0</td>\n"," <td>39.0</td>\n"," <td>NaN</td>\n"," <td>0</td>\n"," </tr>\n"," <tr>\n"," <th>2</th>\n"," <td>10000032</td>\n"," <td>32952584</td>\n"," <td>2180-07-22 16:45:00</td>\n"," <td>NaN</td>\n"," <td>84.0</td>\n"," <td>22.0</td>\n"," <td>97.0</td>\n"," <td>75.0</td>\n"," <td>39.0</td>\n"," <td>NaN</td>\n"," <td>0</td>\n"," </tr>\n"," <tr>\n"," <th>3</th>\n"," <td>10000032</td>\n"," <td>32952584</td>\n"," <td>2180-07-22 17:56:00</td>\n"," <td>NaN</td>\n"," <td>84.0</td>\n"," <td>20.0</td>\n"," <td>99.0</td>\n"," <td>86.0</td>\n"," <td>51.0</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," </tr>\n"," <tr>\n"," <th>4</th>\n"," <td>10000032</td>\n"," <td>32952584</td>\n"," <td>2180-07-22 18:37:00</td>\n"," <td>98.4</td>\n"," <td>86.0</td>\n"," <td>20.0</td>\n"," <td>98.0</td>\n"," <td>65.0</td>\n"," <td>37.0</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," </tr>\n"," <tr>\n"," <th>...</th>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," </tr>\n"," <tr>\n"," <th>1646971</th>\n"," <td>19999828</td>\n"," <td>32917002</td>\n"," <td>2149-01-08 17:10:00</td>\n"," <td>98.1</td>\n"," <td>109.0</td>\n"," <td>15.0</td>\n"," <td>96.0</td>\n"," <td>111.0</td>\n"," <td>78.0</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," </tr>\n"," <tr>\n"," <th>1646972</th>\n"," <td>19999914</td>\n"," <td>32002659</td>\n"," <td>2158-12-24 11:43:00</td>\n"," <td>99.5</td>\n"," <td>81.0</td>\n"," <td>10.0</td>\n"," <td>100.0</td>\n"," <td>93.0</td>\n"," <td>55.0</td>\n"," <td>NaN</td>\n"," <td>0</td>\n"," </tr>\n"," <tr>\n"," <th>1646973</th>\n"," <td>19999987</td>\n"," <td>34731548</td>\n"," <td>2145-11-02 19:
|