test file readme

This commit is contained in:
2022-08-05 12:13:21 +05:30
parent 04ce900393
commit ef4344e5b7
2 changed files with 125 additions and 119 deletions

4
TestModel/README.MD Normal file
View File

@@ -0,0 +1,4 @@
# Test Model
This file is only to check wheather everything in our system is working properly.
If you also want to test use this file first the go ahead using all the other models.

View File

@@ -111,135 +111,103 @@
" <td>31.37</td>\n", " <td>31.37</td>\n",
" </tr>\n", " </tr>\n",
" <tr>\n", " <tr>\n",
" <th>...</th>\n", " <th>5</th>\n",
" <td>...</td>\n", " <td>6</td>\n",
" <td>...</td>\n", " <td>Tetris</td>\n",
" <td>...</td>\n", " <td>GB</td>\n",
" <td>...</td>\n", " <td>1989.0</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16593</th>\n",
" <td>16596</td>\n",
" <td>Woody Woodpecker in Crazy Castle 5</td>\n",
" <td>GBA</td>\n",
" <td>2002.0</td>\n",
" <td>Platform</td>\n",
" <td>Kemco</td>\n",
" <td>0.01</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.01</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16594</th>\n",
" <td>16597</td>\n",
" <td>Men in Black II: Alien Escape</td>\n",
" <td>GC</td>\n",
" <td>2003.0</td>\n",
" <td>Shooter</td>\n",
" <td>Infogrames</td>\n",
" <td>0.01</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.01</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16595</th>\n",
" <td>16598</td>\n",
" <td>SCORE International Baja 1000: The Official Game</td>\n",
" <td>PS2</td>\n",
" <td>2008.0</td>\n",
" <td>Racing</td>\n",
" <td>Activision</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.01</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16596</th>\n",
" <td>16599</td>\n",
" <td>Know How 2</td>\n",
" <td>DS</td>\n",
" <td>2010.0</td>\n",
" <td>Puzzle</td>\n", " <td>Puzzle</td>\n",
" <td>7G//AMES</td>\n", " <td>Nintendo</td>\n",
" <td>0.00</td>\n", " <td>23.20</td>\n",
" <td>0.01</td>\n", " <td>2.26</td>\n",
" <td>0.00</td>\n", " <td>4.22</td>\n",
" <td>0.00</td>\n", " <td>0.58</td>\n",
" <td>0.01</td>\n", " <td>30.26</td>\n",
" </tr>\n", " </tr>\n",
" <tr>\n", " <tr>\n",
" <th>16597</th>\n", " <th>6</th>\n",
" <td>16600</td>\n", " <td>7</td>\n",
" <td>Spirits &amp; Spells</td>\n", " <td>New Super Mario Bros.</td>\n",
" <td>GBA</td>\n", " <td>DS</td>\n",
" <td>2003.0</td>\n", " <td>2006.0</td>\n",
" <td>Platform</td>\n", " <td>Platform</td>\n",
" <td>Wanadoo</td>\n", " <td>Nintendo</td>\n",
" <td>0.01</td>\n", " <td>11.38</td>\n",
" <td>0.00</td>\n", " <td>9.23</td>\n",
" <td>0.00</td>\n", " <td>6.50</td>\n",
" <td>0.00</td>\n", " <td>2.90</td>\n",
" <td>0.01</td>\n", " <td>30.01</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>8</td>\n",
" <td>Wii Play</td>\n",
" <td>Wii</td>\n",
" <td>2006.0</td>\n",
" <td>Misc</td>\n",
" <td>Nintendo</td>\n",
" <td>14.03</td>\n",
" <td>9.20</td>\n",
" <td>2.93</td>\n",
" <td>2.85</td>\n",
" <td>29.02</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>9</td>\n",
" <td>New Super Mario Bros. Wii</td>\n",
" <td>Wii</td>\n",
" <td>2009.0</td>\n",
" <td>Platform</td>\n",
" <td>Nintendo</td>\n",
" <td>14.59</td>\n",
" <td>7.06</td>\n",
" <td>4.70</td>\n",
" <td>2.26</td>\n",
" <td>28.62</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>10</td>\n",
" <td>Duck Hunt</td>\n",
" <td>NES</td>\n",
" <td>1984.0</td>\n",
" <td>Shooter</td>\n",
" <td>Nintendo</td>\n",
" <td>26.93</td>\n",
" <td>0.63</td>\n",
" <td>0.28</td>\n",
" <td>0.47</td>\n",
" <td>28.31</td>\n",
" </tr>\n", " </tr>\n",
" </tbody>\n", " </tbody>\n",
"</table>\n", "</table>\n",
"<p>16598 rows × 11 columns</p>\n",
"</div>" "</div>"
], ],
"text/plain": [ "text/plain": [
" Rank Name Platform \\\n", " Rank Name Platform Year Genre Publisher \\\n",
"0 1 Wii Sports Wii \n", "0 1 Wii Sports Wii 2006.0 Sports Nintendo \n",
"1 2 Super Mario Bros. NES \n", "1 2 Super Mario Bros. NES 1985.0 Platform Nintendo \n",
"2 3 Mario Kart Wii Wii \n", "2 3 Mario Kart Wii Wii 2008.0 Racing Nintendo \n",
"3 4 Wii Sports Resort Wii \n", "3 4 Wii Sports Resort Wii 2009.0 Sports Nintendo \n",
"4 5 Pokemon Red/Pokemon Blue GB \n", "4 5 Pokemon Red/Pokemon Blue GB 1996.0 Role-Playing Nintendo \n",
"... ... ... ... \n", "5 6 Tetris GB 1989.0 Puzzle Nintendo \n",
"16593 16596 Woody Woodpecker in Crazy Castle 5 GBA \n", "6 7 New Super Mario Bros. DS 2006.0 Platform Nintendo \n",
"16594 16597 Men in Black II: Alien Escape GC \n", "7 8 Wii Play Wii 2006.0 Misc Nintendo \n",
"16595 16598 SCORE International Baja 1000: The Official Game PS2 \n", "8 9 New Super Mario Bros. Wii Wii 2009.0 Platform Nintendo \n",
"16596 16599 Know How 2 DS \n", "9 10 Duck Hunt NES 1984.0 Shooter Nintendo \n",
"16597 16600 Spirits & Spells GBA \n",
"\n", "\n",
" Year Genre Publisher NA_Sales EU_Sales JP_Sales \\\n", " NA_Sales EU_Sales JP_Sales Other_Sales Global_Sales \n",
"0 2006.0 Sports Nintendo 41.49 29.02 3.77 \n", "0 41.49 29.02 3.77 8.46 82.74 \n",
"1 1985.0 Platform Nintendo 29.08 3.58 6.81 \n", "1 29.08 3.58 6.81 0.77 40.24 \n",
"2 2008.0 Racing Nintendo 15.85 12.88 3.79 \n", "2 15.85 12.88 3.79 3.31 35.82 \n",
"3 2009.0 Sports Nintendo 15.75 11.01 3.28 \n", "3 15.75 11.01 3.28 2.96 33.00 \n",
"4 1996.0 Role-Playing Nintendo 11.27 8.89 10.22 \n", "4 11.27 8.89 10.22 1.00 31.37 \n",
"... ... ... ... ... ... ... \n", "5 23.20 2.26 4.22 0.58 30.26 \n",
"16593 2002.0 Platform Kemco 0.01 0.00 0.00 \n", "6 11.38 9.23 6.50 2.90 30.01 \n",
"16594 2003.0 Shooter Infogrames 0.01 0.00 0.00 \n", "7 14.03 9.20 2.93 2.85 29.02 \n",
"16595 2008.0 Racing Activision 0.00 0.00 0.00 \n", "8 14.59 7.06 4.70 2.26 28.62 \n",
"16596 2010.0 Puzzle 7G//AMES 0.00 0.01 0.00 \n", "9 26.93 0.63 0.28 0.47 28.31 "
"16597 2003.0 Platform Wanadoo 0.01 0.00 0.00 \n",
"\n",
" Other_Sales Global_Sales \n",
"0 8.46 82.74 \n",
"1 0.77 40.24 \n",
"2 3.31 35.82 \n",
"3 2.96 33.00 \n",
"4 1.00 31.37 \n",
"... ... ... \n",
"16593 0.00 0.01 \n",
"16594 0.00 0.01 \n",
"16595 0.00 0.01 \n",
"16596 0.00 0.01 \n",
"16597 0.00 0.01 \n",
"\n",
"[16598 rows x 11 columns]"
] ]
}, },
"execution_count": 1, "execution_count": 1,
@@ -250,7 +218,7 @@
"source": [ "source": [
"import pandas as pd\n", "import pandas as pd\n",
"df = pd.read_csv('vgsales.csv')\n", "df = pd.read_csv('vgsales.csv')\n",
"df" "df.head(10)"
] ]
}, },
{ {
@@ -451,6 +419,40 @@
"source": [ "source": [
"df.values" "df.values"
] ]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 16598 entries, 0 to 16597\n",
"Data columns (total 11 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 Rank 16598 non-null int64 \n",
" 1 Name 16598 non-null object \n",
" 2 Platform 16598 non-null object \n",
" 3 Year 16327 non-null float64\n",
" 4 Genre 16598 non-null object \n",
" 5 Publisher 16540 non-null object \n",
" 6 NA_Sales 16598 non-null float64\n",
" 7 EU_Sales 16598 non-null float64\n",
" 8 JP_Sales 16598 non-null float64\n",
" 9 Other_Sales 16598 non-null float64\n",
" 10 Global_Sales 16598 non-null float64\n",
"dtypes: float64(6), int64(1), object(4)\n",
"memory usage: 1.4+ MB\n"
]
}
],
"source": [
"df.info()"
]
} }
], ],
"metadata": { "metadata": {