From 83f5415ff0d6951cf8d2dc93562f27654e723131 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Fri, 31 Mar 2023 13:14:42 +0200 Subject: [PATCH] silly python syntax D: --- Mining_HQ.ipynb | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/Mining_HQ.ipynb b/Mining_HQ.ipynb index baccfe4..3be542c 100644 --- a/Mining_HQ.ipynb +++ b/Mining_HQ.ipynb @@ -10,18 +10,9 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "metadata": {}, - "outputs": [ - { - "ename": "SyntaxError", - "evalue": "invalid syntax (2807776577.py, line 1)", - "output_type": "error", - "traceback": [ - "\u001b[0;36m Cell \u001b[0;32mIn[4], line 1\u001b[0;36m\u001b[0m\n\u001b[0;31m import digger, gunner, scout from dwarves\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n" - ] - } - ], + "outputs": [], "source": [ "from dwarves import digger, gunner, scout \n", "import pandas as pd\n" @@ -46,18 +37,33 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 7, "metadata": {}, "outputs": [ { - "ename": "NameError", - "evalue": "name 'digger' is not defined", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[0;32mIn[2], line 4\u001b[0m\n\u001b[1;32m 1\u001b[0m games_review \u001b[39m=\u001b[39m pd\u001b[39m.\u001b[39mread_csv(\u001b[39m\"\u001b[39m\u001b[39mdatasets/videogames/Games.xls\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 2\u001b[0m games_sales \u001b[39m=\u001b[39m pd\u001b[39m.\u001b[39mread_csv(\u001b[39m\"\u001b[39m\u001b[39mdatasets/videogames/vgsales.csv\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[0;32m----> 4\u001b[0m games_review_phase1 \u001b[39m=\u001b[39m digger\u001b[39m.\u001b[39mslice_column(games_review, \u001b[39m\"\u001b[39m\u001b[39mGameName\u001b[39m\u001b[39m\"\u001b[39m, \u001b[39m\"\u001b[39m\u001b[39mReview\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 5\u001b[0m games_review_final \u001b[39m=\u001b[39m digger\u001b[39m.\u001b[39mslice_column(games_review, \u001b[39m\"\u001b[39m\u001b[39mGameName\u001b[39m\u001b[39m\"\u001b[39m, \u001b[39m\"\u001b[39m\u001b[39m(Import)\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 7\u001b[0m games_merged_dat \u001b[39m=\u001b[39m digger\u001b[39m.\u001b[39mwrite_joined_df(games_sales, games_review_final)\n", - "\u001b[0;31mNameError\u001b[0m: name 'digger' is not defined" + "name": "stdout", + "output_type": "stream", + "text": [ + " Rank Name Platform Year Genre Publisher \\\n", + "0 1.0 Wii Sports Wii 2006.0 Sports Nintendo \n", + "1 2.0 Super Mario Bros. NES 1985.0 Platform Nintendo \n", + "2 3.0 Mario Kart Wii Wii 2008.0 Racing Nintendo \n", + "3 4.0 Wii Sports Resort Wii 2009.0 Sports Nintendo \n", + "4 5.0 Pokemon Red/Pokemon Blue GB 1996.0 Role-Playing Nintendo \n", + "\n", + " NA_Sales EU_Sales JP_Sales Other_Sales Global_Sales Console Review \\\n", + "0 41.49 29.02 3.77 8.46 82.74 NaN NaN \n", + "1 29.08 3.58 6.81 0.77 40.24 NaN NaN \n", + "2 15.85 12.88 3.79 3.31 35.82 NaN NaN \n", + "3 15.75 11.01 3.28 2.96 33.00 NaN NaN \n", + "4 11.27 8.89 10.22 1.00 31.37 NaN NaN \n", + "\n", + " Score GameName \n", + "0 NaN NaN \n", + "1 NaN NaN \n", + "2 NaN NaN \n", + "3 NaN NaN \n", + "4 NaN NaN \n" ] } ],