diff --git a/hamrick-introduction-to-jupyter/basics/5 - Analyzing Data with Pandas and Statsmodels.ipynb b/hamrick-introduction-to-jupyter/basics/5 - Analyzing Data with Pandas and Statsmodels.ipynb index 975d793..02f2e85 100644 --- a/hamrick-introduction-to-jupyter/basics/5 - Analyzing Data with Pandas and Statsmodels.ipynb +++ b/hamrick-introduction-to-jupyter/basics/5 - Analyzing Data with Pandas and Statsmodels.ipynb @@ -189,7 +189,7 @@ "outputs": [], "source": [ "# groupby stimulus, hole width, and hole class, and then compute the mean of the 'response' column for each group\n", - "mean_resp = data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"response\"].mean()\n", + "mean_resp = data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"rt\"].mean()\n", "mean_resp.head()" ] }, @@ -208,7 +208,7 @@ "metadata": {}, "outputs": [], "source": [ - "data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"response\"].apply(np.mean).head()" + "data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"rt\"].apply(np.mean).head()" ] }, { @@ -245,7 +245,7 @@ "metadata": {}, "outputs": [], "source": [ - "resp_stats = data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"response\"].apply(calc_stats)\n", + "resp_stats = data.groupby([\"stim\", \"hole_width\", \"hole_class\"])[\"rt\"].apply(calc_stats)\n", "resp_stats.head()" ] }, @@ -606,6 +606,18 @@ "display_name": "Python 3", "language": "python", "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.1" } }, "nbformat": 4,