<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script>
var map = L.map('map').setView([51.505, -0.09], 13); 
</script>
{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import seaborn as sns\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "-15.485477463084308 97.4718452561147\n" ] } ], "source": [ "hum_refs = np.array([8,75,92])\n", "v_refs = np.array([5.7835,0.9261,0.8727])\n", "x = pd.Series(v_refs)\n", "y = pd.Series(hum_refs)\n", "\n", "slope, intercept = np.polyfit(x, y, 1)\n", "print(slope,intercept)" ] },