Commit 316c8c2b authored by Jonathan Poalses's avatar Jonathan Poalses

Initial commit

parents
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JupyterPersistentConnectionParameters">
<option name="moduleParameters">
<map>
<entry key="$PROJECT_DIR$/.idea/machine.iml">
<value>
<JupyterConnectionParameters>
<option name="managed" value="true" />
</JupyterConnectionParameters>
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (machine)" project-jdk-type="Python SDK" />
<component name="PyCharmDSProjectLayout">
<option name="id" value="JupyterRightHiddenStructureLayout" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/machine.iml" filepath="$PROJECT_DIR$/.idea/machine.iml" />
</modules>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
This diff is collapsed.
This diff is collapsed.
("australian" "standard" "standard" "standard" "american" "standard" "standard" "american" "australian" "scottish" "australian" "scottish" "standard" "scottish" "scottish" "standard" "standard" "scottish" "standard" "american" "standard" "american" "standard" "standard" "scottish" "australian" "standard" "scottish" "australian" "scottish" "scottish" "standard" "american" "australian" "american" "standard" "american" "american" "american" "american" "australian" "american" "american" "american" "australian" "australian" "american" "american" "standard" "standard" "australian" "scottish" "australian" "standard" "standard" "scottish" "american" "australian" "american" "scottish" "australian" "australian" "australian" "australian" "american" "australian" "standard" "australian" "american" "australian" "scottish" "scottish" "scottish" "scottish" "scottish" "american" "standard" "scottish" "american" "standard" "scottish" "australian" "scottish" "australian" "australian" "standard" "american" "scottish" "standard" "standard" "american" "american" "australian" "scottish" "australian" "scottish" "scottish" "scottish" "australian" "american")
\ No newline at end of file
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.106873Z",
"start_time": "2023-05-18T01:11:31.103032Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello World!\n"
]
}
],
"source": [
"print(\"Hello World!\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"outputs": [],
"source": [
"%matplotlib inline\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"sns.set(style=\"darkgrid\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.153419Z",
"start_time": "2023-05-18T01:11:31.107554Z"
}
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"df = pd.read_csv(\"fortune500.csv\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.177852Z",
"start_time": "2023-05-18T01:11:31.156199Z"
}
}
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
"text/plain": " Year Rank Company Revenue (in millions) Profit (in millions)\n0 1955 1 General Motors 9823.5 806\n1 1955 2 Exxon Mobil 5661.4 584.8\n2 1955 3 U.S. Steel 3250.4 195.4\n3 1955 4 General Electric 2959.1 212.6\n4 1955 5 Esmark 2510.8 19.1",
"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>Year</th>\n <th>Rank</th>\n <th>Company</th>\n <th>Revenue (in millions)</th>\n <th>Profit (in millions)</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>1955</td>\n <td>1</td>\n <td>General Motors</td>\n <td>9823.5</td>\n <td>806</td>\n </tr>\n <tr>\n <th>1</th>\n <td>1955</td>\n <td>2</td>\n <td>Exxon Mobil</td>\n <td>5661.4</td>\n <td>584.8</td>\n </tr>\n <tr>\n <th>2</th>\n <td>1955</td>\n <td>3</td>\n <td>U.S. Steel</td>\n <td>3250.4</td>\n <td>195.4</td>\n </tr>\n <tr>\n <th>3</th>\n <td>1955</td>\n <td>4</td>\n <td>General Electric</td>\n <td>2959.1</td>\n <td>212.6</td>\n </tr>\n <tr>\n <th>4</th>\n <td>1955</td>\n <td>5</td>\n <td>Esmark</td>\n <td>2510.8</td>\n <td>19.1</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.head()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.193904Z",
"start_time": "2023-05-18T01:11:31.181552Z"
}
}
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [
{
"data": {
"text/plain": "25500"
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(df)"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.195350Z",
"start_time": "2023-05-18T01:11:31.193411Z"
}
}
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [
{
"data": {
"text/plain": " Year Rank Company Revenue (in millions) \\\n25495 2005 496 Wm. Wrigley Jr. 3648.6 \n25496 2005 497 Peabody Energy 3631.6 \n25497 2005 498 Wendy's International 3630.4 \n25498 2005 499 Kindred Healthcare 3616.6 \n25499 2005 500 Cincinnati Financial 3614.0 \n\n Profit (in millions) \n25495 493 \n25496 175.4 \n25497 57.8 \n25498 70.6 \n25499 584 ",
"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>Year</th>\n <th>Rank</th>\n <th>Company</th>\n <th>Revenue (in millions)</th>\n <th>Profit (in millions)</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>25495</th>\n <td>2005</td>\n <td>496</td>\n <td>Wm. Wrigley Jr.</td>\n <td>3648.6</td>\n <td>493</td>\n </tr>\n <tr>\n <th>25496</th>\n <td>2005</td>\n <td>497</td>\n <td>Peabody Energy</td>\n <td>3631.6</td>\n <td>175.4</td>\n </tr>\n <tr>\n <th>25497</th>\n <td>2005</td>\n <td>498</td>\n <td>Wendy's International</td>\n <td>3630.4</td>\n <td>57.8</td>\n </tr>\n <tr>\n <th>25498</th>\n <td>2005</td>\n <td>499</td>\n <td>Kindred Healthcare</td>\n <td>3616.6</td>\n <td>70.6</td>\n </tr>\n <tr>\n <th>25499</th>\n <td>2005</td>\n <td>500</td>\n <td>Cincinnati Financial</td>\n <td>3614.0</td>\n <td>584</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.tail()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.214501Z",
"start_time": "2023-05-18T01:11:31.199825Z"
}
}
},
{
"cell_type": "markdown",
"source": [],
"metadata": {
"collapsed": false
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment