Skip to content

Commit

Permalink
format syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Sep 13, 2017
1 parent cca2066 commit 57c3537
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions notebooks/first_labs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# Import libraries\n",
Expand All @@ -35,9 +33,7 @@
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# create a database connection\n",
Expand Down Expand Up @@ -73,9 +69,7 @@
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# Create dictionary of ranges\n",
Expand Down Expand Up @@ -107,15 +101,13 @@
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"# Connect to local postgres version of mimic\n",
"con = psycopg2.connect(dbname=dbname, user=sqluser)\n",
"cur = con.cursor()\n",
"cur.execute('SET search_path to ' + schema_name)\n",
"cur.execute('SET search_path to {}'.format(schema_name))\n",
"\n",
"# Modify first day labs code: \n",
"# https://github.com/MIT-LCP/mimic-code/tree/master/etc/firstday\n",
Expand Down Expand Up @@ -277,9 +269,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"data.head()"
Expand All @@ -296,7 +286,6 @@
"cell_type": "code",
"execution_count": 22,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -586,9 +575,7 @@
{
"cell_type": "code",
"execution_count": 30,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -806,9 +793,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"version": "2.7.13"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

0 comments on commit 57c3537

Please sign in to comment.