setup codespace

This commit is contained in:
Harivansh Rathi 2025-09-20 01:47:17 +00:00
parent c87acb9d81
commit 17e02e8c8b
18 changed files with 10832 additions and 8 deletions

View file

@ -12,10 +12,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "9074b8b7",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello, World!\n"
]
}
],
"source": [
"## First cell\n",
"# run this for step 11 in your instructions\n",
@ -25,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "4c242432",
"metadata": {},
"outputs": [],
@ -38,15 +46,179 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "bb9cb781",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>names</th>\n",
" <th>date_x</th>\n",
" <th>score</th>\n",
" <th>genre</th>\n",
" <th>overview</th>\n",
" <th>crew</th>\n",
" <th>orig_title</th>\n",
" <th>status</th>\n",
" <th>orig_lang</th>\n",
" <th>budget_x</th>\n",
" <th>revenue</th>\n",
" <th>country</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Creed III</td>\n",
" <td>03/02/2023</td>\n",
" <td>73.0</td>\n",
" <td>Drama, Action</td>\n",
" <td>After dominating the boxing world, Adonis Cree...</td>\n",
" <td>Michael B. Jordan, Adonis Creed, Tessa Thompso...</td>\n",
" <td>Creed III</td>\n",
" <td>Released</td>\n",
" <td>English</td>\n",
" <td>75000000.0</td>\n",
" <td>2.716167e+08</td>\n",
" <td>AU</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Avatar: The Way of Water</td>\n",
" <td>12/15/2022</td>\n",
" <td>78.0</td>\n",
" <td>Science Fiction, Adventure, Action</td>\n",
" <td>Set more than a decade after the events of the...</td>\n",
" <td>Sam Worthington, Jake Sully, Zoe Saldaña, Neyt...</td>\n",
" <td>Avatar: The Way of Water</td>\n",
" <td>Released</td>\n",
" <td>English</td>\n",
" <td>460000000.0</td>\n",
" <td>2.316795e+09</td>\n",
" <td>AU</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>The Super Mario Bros. Movie</td>\n",
" <td>04/05/2023</td>\n",
" <td>76.0</td>\n",
" <td>Animation, Adventure, Family, Fantasy, Comedy</td>\n",
" <td>While working underground to fix a water main,...</td>\n",
" <td>Chris Pratt, Mario (voice), Anya Taylor-Joy, P...</td>\n",
" <td>The Super Mario Bros. Movie</td>\n",
" <td>Released</td>\n",
" <td>English</td>\n",
" <td>100000000.0</td>\n",
" <td>7.244590e+08</td>\n",
" <td>AU</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Mummies</td>\n",
" <td>01/05/2023</td>\n",
" <td>70.0</td>\n",
" <td>Animation, Comedy, Family, Adventure, Fantasy</td>\n",
" <td>Through a series of unfortunate events, three ...</td>\n",
" <td>Óscar Barberán, Thut (voice), Ana Esther Albor...</td>\n",
" <td>Momias</td>\n",
" <td>Released</td>\n",
" <td>Spanish, Castilian</td>\n",
" <td>12300000.0</td>\n",
" <td>3.420000e+07</td>\n",
" <td>AU</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Supercell</td>\n",
" <td>03/17/2023</td>\n",
" <td>61.0</td>\n",
" <td>Action</td>\n",
" <td>Good-hearted teenager William always lived in ...</td>\n",
" <td>Skeet Ulrich, Roy Cameron, Anne Heche, Dr Quin...</td>\n",
" <td>Supercell</td>\n",
" <td>Released</td>\n",
" <td>English</td>\n",
" <td>77000000.0</td>\n",
" <td>3.409420e+08</td>\n",
" <td>US</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" names date_x score \\\n",
"0 Creed III 03/02/2023 73.0 \n",
"1 Avatar: The Way of Water 12/15/2022 78.0 \n",
"2 The Super Mario Bros. Movie 04/05/2023 76.0 \n",
"3 Mummies 01/05/2023 70.0 \n",
"4 Supercell 03/17/2023 61.0 \n",
"\n",
" genre \\\n",
"0 Drama, Action \n",
"1 Science Fiction, Adventure, Action \n",
"2 Animation, Adventure, Family, Fantasy, Comedy \n",
"3 Animation, Comedy, Family, Adventure, Fantasy \n",
"4 Action \n",
"\n",
" overview \\\n",
"0 After dominating the boxing world, Adonis Cree... \n",
"1 Set more than a decade after the events of the... \n",
"2 While working underground to fix a water main,... \n",
"3 Through a series of unfortunate events, three ... \n",
"4 Good-hearted teenager William always lived in ... \n",
"\n",
" crew \\\n",
"0 Michael B. Jordan, Adonis Creed, Tessa Thompso... \n",
"1 Sam Worthington, Jake Sully, Zoe Saldaña, Neyt... \n",
"2 Chris Pratt, Mario (voice), Anya Taylor-Joy, P... \n",
"3 Óscar Barberán, Thut (voice), Ana Esther Albor... \n",
"4 Skeet Ulrich, Roy Cameron, Anne Heche, Dr Quin... \n",
"\n",
" orig_title status orig_lang budget_x \\\n",
"0 Creed III Released English 75000000.0 \n",
"1 Avatar: The Way of Water Released English 460000000.0 \n",
"2 The Super Mario Bros. Movie Released English 100000000.0 \n",
"3 Momias Released Spanish, Castilian 12300000.0 \n",
"4 Supercell Released English 77000000.0 \n",
"\n",
" revenue country \n",
"0 2.716167e+08 AU \n",
"1 2.316795e+09 AU \n",
"2 7.244590e+08 AU \n",
"3 3.420000e+07 AU \n",
"4 3.409420e+08 US "
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"## Part 3: Accessing your data\n",
"# edit this code to load your data into your workspace\n",
"\n",
"data = pd.read_csv() #add your data file path to this line!\n",
"data = pd.read_csv(\"imdb_movies.csv\") #add your data file path to this line!\n",
"data.head()"
]
},
@ -61,7 +233,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
@ -75,7 +247,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.1"
}
},
"nbformat": 4,