diff --git a/notebook.ipynb b/notebook.ipynb index 5e1a17e..e15d1b3 100644 --- a/notebook.ipynb +++ b/notebook.ipynb @@ -23,110 +23,63 @@ "name": "stdout", "output_type": "stream", "text": [ - " url types \\\n", - "0 https://store.steampowered.com/app/379720/DOOM/ app \n", - "1 https://store.steampowered.com/app/578080/PLAY... app \n", - "2 https://store.steampowered.com/app/637090/BATT... app \n", - "3 https://store.steampowered.com/app/221100/DayZ/ app \n", - "4 https://store.steampowered.com/app/8500/EVE_On... app \n", + " appid name release_date required_age price \\\n", + "0 730 Counter-Strike 2 2012-08-21 0 0.00 \n", + "1 578080 PUBG: BATTLEGROUNDS 2017-12-21 0 0.00 \n", + "2 570 Dota 2 2013-07-09 0 0.00 \n", + "3 271590 Grand Theft Auto V Legacy 2015-04-13 17 0.00 \n", + "4 359550 Tom Clancy's Rainbow Six® Siege 2015-12-01 17 3.99 \n", "\n", - " name \\\n", - "0 DOOM \n", - "1 PLAYERUNKNOWN'S BATTLEGROUNDS \n", - "2 BATTLETECH \n", - "3 DayZ \n", - "4 EVE Online \n", + " dlc_count detailed_description \\\n", + "0 1 For over two decades, Counter-Strike has offer... \n", + "1 0 LAND, LOOT, SURVIVE! Play PUBG: BATTLEGROUNDS ... \n", + "2 2 The most-played game on Steam. Every day, mill... \n", + "3 0 When a young street hustler, a retired bank ro... \n", + "4 9 Edition Comparison Ultimate Edition The Tom Cl... \n", "\n", - " desc_snippet \\\n", - "0 Now includes all three premium DLC packs (Unto... \n", - "1 PLAYERUNKNOWN'S BATTLEGROUNDS is a battle roya... \n", - "2 Take command of your own mercenary outfit of '... \n", - "3 The post-soviet country of Chernarus is struck... \n", - "4 EVE Online is a community-driven spaceship MMO... \n", + " about_the_game \\\n", + "0 For over two decades, Counter-Strike has offer... \n", + "1 LAND, LOOT, SURVIVE! Play PUBG: BATTLEGROUNDS ... \n", + "2 The most-played game on Steam. Every day, mill... \n", + "3 When a young street hustler, a retired bank ro... \n", + "4 “One of the best first-person shooters ever ma... \n", "\n", - " recent_reviews \\\n", - "0 Very Positive,(554),- 89% of the 554 user revi... \n", - "1 Mixed,(6,214),- 49% of the 6,214 user reviews ... \n", - "2 Mixed,(166),- 54% of the 166 user reviews in t... \n", - "3 Mixed,(932),- 57% of the 932 user reviews in t... \n", - "4 Mixed,(287),- 54% of the 287 user reviews in t... \n", + " short_description \\\n", + "0 For over two decades, Counter-Strike has offer... \n", + "1 Play PUBG: BATTLEGROUNDS for free. Land on str... \n", + "2 Every day, millions of players worldwide enter... \n", + "3 Grand Theft Auto V for PC offers players the o... \n", + "4 Tom Clancy's Rainbow Six® Siege is an elite, t... \n", "\n", - " all_reviews release_date \\\n", - "0 Very Positive,(42,550),- 92% of the 42,550 use... May 12, 2016 \n", - "1 Mixed,(836,608),- 49% of the 836,608 user revi... Dec 21, 2017 \n", - "2 Mostly Positive,(7,030),- 71% of the 7,030 use... Apr 24, 2018 \n", - "3 Mixed,(167,115),- 61% of the 167,115 user revi... Dec 13, 2018 \n", - "4 Mostly Positive,(11,481),- 74% of the 11,481 u... May 6, 2003 \n", + " reviews ... \\\n", + "0 NaN ... \n", + "1 NaN ... \n", + "2 “A modern multiplayer masterpiece.” 9.5/10 – D... ... \n", + "3 NaN ... \n", + "4 NaN ... \n", "\n", - " developer publisher \\\n", - "0 id Software Bethesda Softworks,Bethesda Softworks \n", - "1 PUBG Corporation PUBG Corporation,PUBG Corporation \n", - "2 Harebrained Schemes Paradox Interactive,Paradox Interactive \n", - "3 Bohemia Interactive Bohemia Interactive,Bohemia Interactive \n", - "4 CCP CCP,CCP \n", + " average_playtime_2weeks median_playtime_forever median_playtime_2weeks \\\n", + "0 879 5174 350 \n", + "1 0 0 0 \n", + "2 1536 898 892 \n", + "3 771 7101 74 \n", + "4 682 2434 306 \n", "\n", - " popular_tags \\\n", - "0 FPS,Gore,Action,Demons,Shooter,First-Person,Gr... \n", - "1 Survival,Shooter,Multiplayer,Battle Royale,PvP... \n", - "2 Mechs,Strategy,Turn-Based,Turn-Based Tactics,S... \n", - "3 Survival,Zombies,Open World,Multiplayer,PvP,Ma... \n", - "4 Space,Massively Multiplayer,Sci-fi,Sandbox,MMO... \n", + " discount peak_ccu tags \\\n", + "0 0 1212356 {'FPS': 90857, 'Shooter': 65397, 'Multiplayer'... \n", + "1 0 616738 {'Survival': 14838, 'Shooter': 12727, 'Battle ... \n", + "2 0 555977 {'Free to Play': 59933, 'MOBA': 20158, 'Multip... \n", + "3 0 117698 {'Open World': 32644, 'Action': 23539, 'Multip... \n", + "4 80 89916 {'FPS': 9831, 'PvP': 9162, 'e-sports': 9072, '... \n", "\n", - " game_details \\\n", - "0 Single-player,Multi-player,Co-op,Steam Achieve... \n", - "1 Multi-player,Online Multi-Player,Stats \n", - "2 Single-player,Multi-player,Online Multi-Player... \n", - "3 Multi-player,Online Multi-Player,Steam Worksho... \n", - "4 Multi-player,Online Multi-Player,MMO,Co-op,Onl... \n", + " pct_pos_total num_reviews_total pct_pos_recent num_reviews_recent \n", + "0 86 8632939 82 96473 \n", + "1 59 2513842 68 16720 \n", + "2 81 2452595 80 29366 \n", + "3 87 1803832 92 17517 \n", + "4 84 1168020 76 12608 \n", "\n", - " languages achievements \\\n", - "0 English,French,Italian,German,Spanish - Spain,... 54.0 \n", - "1 English,Korean,Simplified Chinese,French,Germa... 37.0 \n", - "2 English,French,German,Russian 128.0 \n", - "3 English,French,Italian,German,Spanish - Spain,... NaN \n", - "4 English,German,Russian,French NaN \n", - "\n", - " genre \\\n", - "0 Action \n", - "1 Action,Adventure,Massively Multiplayer \n", - "2 Action,Adventure,Strategy \n", - "3 Action,Adventure,Massively Multiplayer \n", - "4 Action,Free to Play,Massively Multiplayer,RPG,... \n", - "\n", - " game_description \\\n", - "0 About This Game Developed by id software, the... \n", - "1 About This Game PLAYERUNKNOWN'S BATTLEGROUND... \n", - "2 About This Game From original BATTLETECH/Mec... \n", - "3 About This Game The post-soviet country of Ch... \n", - "4 About This Game \n", - "\n", - " mature_content \\\n", - "0 NaN \n", - "1 Mature Content Description The developers de... \n", - "2 NaN \n", - "3 NaN \n", - "4 NaN \n", - "\n", - " minimum_requirements \\\n", - "0 Minimum:,OS:,Windows 7/8.1/10 (64-bit versions... \n", - "1 Minimum:,Requires a 64-bit processor and opera... \n", - "2 Minimum:,Requires a 64-bit processor and opera... \n", - "3 Minimum:,OS:,Windows 7/8.1 64-bit,Processor:,I... \n", - "4 Minimum:,OS:,Windows 7,Processor:,Intel Dual C... \n", - "\n", - " recommended_requirements original_price \\\n", - "0 Recommended:,OS:,Windows 7/8.1/10 (64-bit vers... $19.99 \n", - "1 Recommended:,Requires a 64-bit processor and o... $29.99 \n", - "2 Recommended:,Requires a 64-bit processor and o... $39.99 \n", - "3 Recommended:,OS:,Windows 10 64-bit,Processor:,... $44.99 \n", - "4 Recommended:,OS:,Windows 10,Processor:,Intel i... Free \n", - "\n", - " discount_price \n", - "0 $14.99 \n", - "1 NaN \n", - "2 NaN \n", - "3 NaN \n", - "4 NaN \n" + "[5 rows x 47 columns]\n" ] } ], @@ -135,7 +88,7 @@ "import pandas as pd\n", "\n", "# load data\n", - "# url,types,name,desc_snippet,recent_reviews,all_reviews,release_date,developer,publisher,popular_tags,game_details,languages,achievements,genre,game_description,mature_content,minimum_requirements,recommended_requirements,original_price,discount_price\n", + "# appid,name,release_date,required_age,price,dlc_count,detailed_description,about_the_game,short_description,reviews,header_image,website,support_url,support_email,windows,mac,linux,metacritic_score,metacritic_url,achievements,recommendations,notes,supported_languages,full_audio_languages,packages,developers,publishers,categories,genres,screenshots,movies,user_score,score_rank,positive,negative,estimated_owners,average_playtime_forever,average_playtime_2weeks,median_playtime_forever,median_playtime_2weeks,discount,peak_ccu,tags,pct_pos_total,num_reviews_total,pct_pos_recent,num_reviews_recent\n", "dataset = pd.read_csv(\"./games_march2025_cleaned.csv\",sep=\",\")\n", "print(dataset.head())" ] @@ -148,111 +101,47 @@ "## Preparation of the Training-Set\n", "### Removing Uniques\n", "We remove the following features from the Training-Set as they can uniquely identify a datapoint:\n", - "- URL\n", + "- AppId\n", "- Name of the Game\n", + "- Realease Date\n", + "- Reviews\n", + "- Header Image\n", + "- Website\n", + "- Support URL\n", + "- Support Email\n", + "- MetaCritic URL\n", "- Developer\n", - "- Publisher" + "- Publisher\n", + "- Screenshots\n", + "- Movies\n", + "- Estimated Owners" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "06dedcdf", "metadata": {}, "outputs": [ { - "name": "stdout", - "output_type": "stream", - "text": [ - " types desc_snippet \\\n", - "0 app Now includes all three premium DLC packs (Unto... \n", - "1 app PLAYERUNKNOWN'S BATTLEGROUNDS is a battle roya... \n", - "2 app Take command of your own mercenary outfit of '... \n", - "3 app The post-soviet country of Chernarus is struck... \n", - "4 app EVE Online is a community-driven spaceship MMO... \n", - "\n", - " recent_reviews \\\n", - "0 Very Positive,(554),- 89% of the 554 user revi... \n", - "1 Mixed,(6,214),- 49% of the 6,214 user reviews ... \n", - "2 Mixed,(166),- 54% of the 166 user reviews in t... \n", - "3 Mixed,(932),- 57% of the 932 user reviews in t... \n", - "4 Mixed,(287),- 54% of the 287 user reviews in t... \n", - "\n", - " all_reviews release_date \\\n", - "0 Very Positive,(42,550),- 92% of the 42,550 use... May 12, 2016 \n", - "1 Mixed,(836,608),- 49% of the 836,608 user revi... Dec 21, 2017 \n", - "2 Mostly Positive,(7,030),- 71% of the 7,030 use... Apr 24, 2018 \n", - "3 Mixed,(167,115),- 61% of the 167,115 user revi... Dec 13, 2018 \n", - "4 Mostly Positive,(11,481),- 74% of the 11,481 u... May 6, 2003 \n", - "\n", - " popular_tags \\\n", - "0 FPS,Gore,Action,Demons,Shooter,First-Person,Gr... \n", - "1 Survival,Shooter,Multiplayer,Battle Royale,PvP... \n", - "2 Mechs,Strategy,Turn-Based,Turn-Based Tactics,S... \n", - "3 Survival,Zombies,Open World,Multiplayer,PvP,Ma... \n", - "4 Space,Massively Multiplayer,Sci-fi,Sandbox,MMO... \n", - "\n", - " game_details \\\n", - "0 Single-player,Multi-player,Co-op,Steam Achieve... \n", - "1 Multi-player,Online Multi-Player,Stats \n", - "2 Single-player,Multi-player,Online Multi-Player... \n", - "3 Multi-player,Online Multi-Player,Steam Worksho... \n", - "4 Multi-player,Online Multi-Player,MMO,Co-op,Onl... \n", - "\n", - " languages achievements \\\n", - "0 English,French,Italian,German,Spanish - Spain,... 54.0 \n", - "1 English,Korean,Simplified Chinese,French,Germa... 37.0 \n", - "2 English,French,German,Russian 128.0 \n", - "3 English,French,Italian,German,Spanish - Spain,... NaN \n", - "4 English,German,Russian,French NaN \n", - "\n", - " genre \\\n", - "0 Action \n", - "1 Action,Adventure,Massively Multiplayer \n", - "2 Action,Adventure,Strategy \n", - "3 Action,Adventure,Massively Multiplayer \n", - "4 Action,Free to Play,Massively Multiplayer,RPG,... \n", - "\n", - " game_description \\\n", - "0 About This Game Developed by id software, the... \n", - "1 About This Game PLAYERUNKNOWN'S BATTLEGROUND... \n", - "2 About This Game From original BATTLETECH/Mec... \n", - "3 About This Game The post-soviet country of Ch... \n", - "4 About This Game \n", - "\n", - " mature_content \\\n", - "0 NaN \n", - "1 Mature Content Description The developers de... \n", - "2 NaN \n", - "3 NaN \n", - "4 NaN \n", - "\n", - " minimum_requirements \\\n", - "0 Minimum:,OS:,Windows 7/8.1/10 (64-bit versions... \n", - "1 Minimum:,Requires a 64-bit processor and opera... \n", - "2 Minimum:,Requires a 64-bit processor and opera... \n", - "3 Minimum:,OS:,Windows 7/8.1 64-bit,Processor:,I... \n", - "4 Minimum:,OS:,Windows 7,Processor:,Intel Dual C... \n", - "\n", - " recommended_requirements original_price \\\n", - "0 Recommended:,OS:,Windows 7/8.1/10 (64-bit vers... $19.99 \n", - "1 Recommended:,Requires a 64-bit processor and o... $29.99 \n", - "2 Recommended:,Requires a 64-bit processor and o... $39.99 \n", - "3 Recommended:,OS:,Windows 10 64-bit,Processor:,... $44.99 \n", - "4 Recommended:,OS:,Windows 10,Processor:,Intel i... Free \n", - "\n", - " discount_price \n", - "0 $14.99 \n", - "1 NaN \n", - "2 NaN \n", - "3 NaN \n", - "4 NaN \n" + "ename": "KeyError", + "evalue": "\"['developer', 'publisher'] not found in axis\"", + "output_type": "error", + "traceback": [ + "\u001b[31m---------------------------------------------------------------------------\u001b[39m", + "\u001b[31mKeyError\u001b[39m Traceback (most recent call last)", + "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[4]\u001b[39m\u001b[32m, line 2\u001b[39m\n\u001b[32m 1\u001b[39m \u001b[38;5;66;03m# appid,name,release_date,required_age,price,dlc_count,detailed_description,about_the_game,short_description,reviews,header_image,website,support_url,support_email,windows,mac,linux,metacritic_score,metacritic_url,achievements,recommendations,notes,supported_languages,full_audio_languages,packages,developers,publishers,categories,genres,screenshots,movies,user_score,score_rank,positive,negative,estimated_owners,average_playtime_forever,average_playtime_2weeks,median_playtime_forever,median_playtime_2weeks,discount,peak_ccu,tags,pct_pos_total,num_reviews_total,pct_pos_recent,num_reviews_recent\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m2\u001b[39m \u001b[43mdataset\u001b[49m\u001b[43m.\u001b[49m\u001b[43mdrop\u001b[49m\u001b[43m(\u001b[49m\u001b[43m[\u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mappid\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mname\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mrelease_date\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mreviews\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mheader_image\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mwebsite\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43msupport_url\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43msupport_email\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mmetacritic_url\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mdeveloper\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mpublisher\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mscreenshots\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mmovies\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mestimated_owners\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43maxis\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m1\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minplace\u001b[49m\u001b[43m=\u001b[49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[32m 3\u001b[39m \u001b[38;5;28mprint\u001b[39m(dataset.head())\n", + "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\FlorianSpeicher\\anaconda3\\Lib\\site-packages\\pandas\\core\\frame.py:5581\u001b[39m, in \u001b[36mDataFrame.drop\u001b[39m\u001b[34m(self, labels, axis, index, columns, level, inplace, errors)\u001b[39m\n\u001b[32m 5433\u001b[39m \u001b[38;5;28;01mdef\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34mdrop\u001b[39m(\n\u001b[32m 5434\u001b[39m \u001b[38;5;28mself\u001b[39m,\n\u001b[32m 5435\u001b[39m labels: IndexLabel | \u001b[38;5;28;01mNone\u001b[39;00m = \u001b[38;5;28;01mNone\u001b[39;00m,\n\u001b[32m (...)\u001b[39m\u001b[32m 5442\u001b[39m errors: IgnoreRaise = \u001b[33m\"\u001b[39m\u001b[33mraise\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 5443\u001b[39m ) -> DataFrame | \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[32m 5444\u001b[39m \u001b[38;5;250m \u001b[39m\u001b[33;03m\"\"\"\u001b[39;00m\n\u001b[32m 5445\u001b[39m \u001b[33;03m Drop specified labels from rows or columns.\u001b[39;00m\n\u001b[32m 5446\u001b[39m \n\u001b[32m (...)\u001b[39m\u001b[32m 5579\u001b[39m \u001b[33;03m weight 1.0 0.8\u001b[39;00m\n\u001b[32m 5580\u001b[39m \u001b[33;03m \"\"\"\u001b[39;00m\n\u001b[32m-> \u001b[39m\u001b[32m5581\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43msuper\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m.\u001b[49m\u001b[43mdrop\u001b[49m\u001b[43m(\u001b[49m\n\u001b[32m 5582\u001b[39m \u001b[43m \u001b[49m\u001b[43mlabels\u001b[49m\u001b[43m=\u001b[49m\u001b[43mlabels\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5583\u001b[39m \u001b[43m \u001b[49m\u001b[43maxis\u001b[49m\u001b[43m=\u001b[49m\u001b[43maxis\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5584\u001b[39m \u001b[43m \u001b[49m\u001b[43mindex\u001b[49m\u001b[43m=\u001b[49m\u001b[43mindex\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5585\u001b[39m \u001b[43m \u001b[49m\u001b[43mcolumns\u001b[49m\u001b[43m=\u001b[49m\u001b[43mcolumns\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5586\u001b[39m \u001b[43m \u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m=\u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5587\u001b[39m \u001b[43m \u001b[49m\u001b[43minplace\u001b[49m\u001b[43m=\u001b[49m\u001b[43minplace\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5588\u001b[39m \u001b[43m \u001b[49m\u001b[43merrors\u001b[49m\u001b[43m=\u001b[49m\u001b[43merrors\u001b[49m\u001b[43m,\u001b[49m\n\u001b[32m 5589\u001b[39m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n", + "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\FlorianSpeicher\\anaconda3\\Lib\\site-packages\\pandas\\core\\generic.py:4788\u001b[39m, in \u001b[36mNDFrame.drop\u001b[39m\u001b[34m(self, labels, axis, index, columns, level, inplace, errors)\u001b[39m\n\u001b[32m 4786\u001b[39m \u001b[38;5;28;01mfor\u001b[39;00m axis, labels \u001b[38;5;129;01min\u001b[39;00m axes.items():\n\u001b[32m 4787\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m labels \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[32m-> \u001b[39m\u001b[32m4788\u001b[39m obj = \u001b[43mobj\u001b[49m\u001b[43m.\u001b[49m\u001b[43m_drop_axis\u001b[49m\u001b[43m(\u001b[49m\u001b[43mlabels\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43maxis\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m=\u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merrors\u001b[49m\u001b[43m=\u001b[49m\u001b[43merrors\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 4790\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m inplace:\n\u001b[32m 4791\u001b[39m \u001b[38;5;28mself\u001b[39m._update_inplace(obj)\n", + "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\FlorianSpeicher\\anaconda3\\Lib\\site-packages\\pandas\\core\\generic.py:4830\u001b[39m, in \u001b[36mNDFrame._drop_axis\u001b[39m\u001b[34m(self, labels, axis, level, errors, only_slice)\u001b[39m\n\u001b[32m 4828\u001b[39m new_axis = axis.drop(labels, level=level, errors=errors)\n\u001b[32m 4829\u001b[39m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[32m-> \u001b[39m\u001b[32m4830\u001b[39m new_axis = \u001b[43maxis\u001b[49m\u001b[43m.\u001b[49m\u001b[43mdrop\u001b[49m\u001b[43m(\u001b[49m\u001b[43mlabels\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merrors\u001b[49m\u001b[43m=\u001b[49m\u001b[43merrors\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 4831\u001b[39m indexer = axis.get_indexer(new_axis)\n\u001b[32m 4833\u001b[39m \u001b[38;5;66;03m# Case for non-unique axis\u001b[39;00m\n\u001b[32m 4834\u001b[39m \u001b[38;5;28;01melse\u001b[39;00m:\n", + "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\FlorianSpeicher\\anaconda3\\Lib\\site-packages\\pandas\\core\\indexes\\base.py:7070\u001b[39m, in \u001b[36mIndex.drop\u001b[39m\u001b[34m(self, labels, errors)\u001b[39m\n\u001b[32m 7068\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m mask.any():\n\u001b[32m 7069\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m errors != \u001b[33m\"\u001b[39m\u001b[33mignore\u001b[39m\u001b[33m\"\u001b[39m:\n\u001b[32m-> \u001b[39m\u001b[32m7070\u001b[39m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mKeyError\u001b[39;00m(\u001b[33mf\u001b[39m\u001b[33m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mlabels[mask].tolist()\u001b[38;5;132;01m}\u001b[39;00m\u001b[33m not found in axis\u001b[39m\u001b[33m\"\u001b[39m)\n\u001b[32m 7071\u001b[39m indexer = indexer[~mask]\n\u001b[32m 7072\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mself\u001b[39m.delete(indexer)\n", + "\u001b[31mKeyError\u001b[39m: \"['developer', 'publisher'] not found in axis\"" ] } ], "source": [ - "# types,desc_snippet,recent_reviews,all_reviews,release_date,popular_tags,game_details,languages,achievements,genre,game_description,mature_content,minimum_requirements,recommended_requirements,original_price,discount_price\n", - "dataset.drop(['url', 'name', 'developer', 'publisher'], axis=1, inplace=True)\n", + "# appid,name,release_date,required_age,price,dlc_count,detailed_description,about_the_game,short_description,reviews,header_image,website,support_url,support_email,windows,mac,linux,metacritic_score,metacritic_url,achievements,recommendations,notes,supported_languages,full_audio_languages,packages,developers,publishers,categories,genres,screenshots,movies,user_score,score_rank,positive,negative,estimated_owners,average_playtime_forever,average_playtime_2weeks,median_playtime_forever,median_playtime_2weeks,discount,peak_ccu,tags,pct_pos_total,num_reviews_total,pct_pos_recent,num_reviews_recent\n", + "dataset.drop(['appid', 'name', 'release_date', 'reviews', 'header_image', 'website', 'support_url', 'support_email', 'metacritic_url', 'developer', 'publisher', 'screenshots', 'movies', 'estimated_owners'], axis=1, inplace=True)\n", "print(dataset.head())" ] },