Skip to content

Commit

Permalink
Added linear regression for total trade
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerldixon committed Mar 23, 2018
1 parent ba99668 commit 611c7eb
Show file tree
Hide file tree
Showing 8 changed files with 133,164 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
data/*
.DS_Store
22 changes: 15 additions & 7 deletions .ipynb_checkpoints/1. Classifying Partial Permits-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Using TensorFlow backend.\n"
]
}
],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
Expand All @@ -39,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -52,12 +60,12 @@
"metadata": {},
"source": [
"### Importing our data\n",
"Let's import our data into a pandas dataframe and take a look at it."
"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."
]
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1520,13 +1528,13 @@
"[75891 rows x 16 columns]"
]
},
"execution_count": 41,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dataframe = pd.read_csv(\"data/data.csv\", skipinitialspace=True, dtype={\n",
"dataframe = pd.read_csv(\"data/goal_1_data.csv\", skipinitialspace=True, dtype={\n",
" 'Importer reported quantity': float,\n",
" 'Exporter reported quantity': float\n",
"})\n",
Expand Down
Loading

0 comments on commit 611c7eb

Please sign in to comment.