silly python syntax D:

This commit is contained in:
LinlyBoi
2023-03-31 13:14:42 +02:00
parent a99333dda6
commit 83f5415ff0

View File

@@ -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"
]
}
],