Skip to content

Commit

Permalink
navis exercise 2: fix meta data column issue
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Sep 24, 2024
1 parent 19e0106 commit b02a6b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exercises/navis/navis_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@
"\n",
"meta = pd.read_csv(\"~/Downloads/20200711_patchseq_metadata_mouse.csv\")\n",
"\n",
"# Strangely, the last column with the transcriptomic (\"t\") types has no name - let's fix that:\n",
"meta.columns = list(meta.columns[:-1]) + [\"t_type\"]\n",
"# Important note: if you downloaded the meta data CSV from the link in the paper, the name of the last column\n",
"# which contains the T-type is missing. You can add it manually by running the following line:\n",
"# meta.columns = list(meta.columns[:-1]) + [\"T-type Label\"]\n",
"\n",
"# Let's rename the \"T-type Label\" column to just \"t_type\" to make our lives a bit easier\n",
"meta = meta.rename(columns={\"T-type Label\": \"t_type\"})\n",
"\n",
"meta.head()"
]
Expand Down

0 comments on commit b02a6b4

Please sign in to comment.