DS1001-LABS-Projects/LABS-03_Systems.ipynb
2025-09-20 01:47:17 +00:00

255 lines
8.4 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "markdown",
"id": "f11f3ba9",
"metadata": {},
"source": [
"# LABS-3: Systems Project\n",
"\n",
"In this notebook you will run a few cells to ensure that your environment is properly set up.\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "9074b8b7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello, World!\n"
]
}
],
"source": [
"## First cell\n",
"# run this for step 11 in your instructions\n",
"\n",
"print(\"Hello, World!\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "4c242432",
"metadata": {},
"outputs": [],
"source": [
"## Second cell\n",
"# run this for step 14 in your instructions\n",
"\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "bb9cb781",
"metadata": {},
"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(\"imdb_movies.csv\") #add your data file path to this line!\n",
"data.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ca63e2fd",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}