Skip to content

Commit 611c7eb

Browse files
committed
Added linear regression for total trade
1 parent ba99668 commit 611c7eb

8 files changed

+133164
-15
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
data/*
1+
.DS_Store

.ipynb_checkpoints/1. Classifying Partial Permits-checkpoint.ipynb

+15-7
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@
1919
},
2020
{
2121
"cell_type": "code",
22-
"execution_count": 39,
22+
"execution_count": 2,
2323
"metadata": {},
24-
"outputs": [],
24+
"outputs": [
25+
{
26+
"name": "stderr",
27+
"output_type": "stream",
28+
"text": [
29+
"Using TensorFlow backend.\n"
30+
]
31+
}
32+
],
2533
"source": [
2634
"import numpy as np\n",
2735
"import pandas as pd\n",
@@ -39,7 +47,7 @@
3947
},
4048
{
4149
"cell_type": "code",
42-
"execution_count": 40,
50+
"execution_count": 3,
4351
"metadata": {},
4452
"outputs": [],
4553
"source": [
@@ -52,12 +60,12 @@
5260
"metadata": {},
5361
"source": [
5462
"### Importing our data\n",
55-
"Let's import our data into a pandas dataframe and take a look at it."
63+
"Let's import our data into a pandas dataframe and take a look at it. We're using a comparative tabulation report from the CITES database website for a single year for all countries."
5664
]
5765
},
5866
{
5967
"cell_type": "code",
60-
"execution_count": 41,
68+
"execution_count": 6,
6169
"metadata": {},
6270
"outputs": [
6371
{
@@ -1520,13 +1528,13 @@
15201528
"[75891 rows x 16 columns]"
15211529
]
15221530
},
1523-
"execution_count": 41,
1531+
"execution_count": 6,
15241532
"metadata": {},
15251533
"output_type": "execute_result"
15261534
}
15271535
],
15281536
"source": [
1529-
"dataframe = pd.read_csv(\"data/data.csv\", skipinitialspace=True, dtype={\n",
1537+
"dataframe = pd.read_csv(\"data/goal_1_data.csv\", skipinitialspace=True, dtype={\n",
15301538
" 'Importer reported quantity': float,\n",
15311539
" 'Exporter reported quantity': float\n",
15321540
"})\n",

0 commit comments

Comments
 (0)