Skip to content

Commit

Permalink
added the navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie committed Oct 27, 2020
1 parent b017c63 commit dbf5586
Show file tree
Hide file tree
Showing 10 changed files with 903 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
288 changes: 288 additions & 0 deletions .ipynb_checkpoints/web_chart-checkpoint.ipynb

Large diffs are not rendered by default.

265 changes: 265 additions & 0 deletions .ipynb_checkpoints/web_chart_-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"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>City_ID</th>\n",
" <th>City</th>\n",
" <th>Cloudiness</th>\n",
" <th>Country</th>\n",
" <th>Date</th>\n",
" <th>Humidity</th>\n",
" <th>Lat</th>\n",
" <th>Lng</th>\n",
" <th>Max Temp</th>\n",
" <th>Wind Speed</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>jacareacanga</td>\n",
" <td>0</td>\n",
" <td>BR</td>\n",
" <td>1528902000</td>\n",
" <td>62</td>\n",
" <td>-6.22</td>\n",
" <td>-57.76</td>\n",
" <td>89.60</td>\n",
" <td>6.93</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>kaitangata</td>\n",
" <td>100</td>\n",
" <td>NZ</td>\n",
" <td>1528905304</td>\n",
" <td>94</td>\n",
" <td>-46.28</td>\n",
" <td>169.85</td>\n",
" <td>42.61</td>\n",
" <td>5.64</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2</td>\n",
" <td>goulburn</td>\n",
" <td>20</td>\n",
" <td>AU</td>\n",
" <td>1528905078</td>\n",
" <td>91</td>\n",
" <td>-34.75</td>\n",
" <td>149.72</td>\n",
" <td>44.32</td>\n",
" <td>10.11</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>3</td>\n",
" <td>lata</td>\n",
" <td>76</td>\n",
" <td>IN</td>\n",
" <td>1528905305</td>\n",
" <td>89</td>\n",
" <td>30.78</td>\n",
" <td>78.62</td>\n",
" <td>59.89</td>\n",
" <td>0.94</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4</td>\n",
" <td>chokurdakh</td>\n",
" <td>0</td>\n",
" <td>RU</td>\n",
" <td>1528905306</td>\n",
" <td>88</td>\n",
" <td>70.62</td>\n",
" <td>147.90</td>\n",
" <td>32.17</td>\n",
" <td>2.95</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>542</th>\n",
" <td>542</td>\n",
" <td>scalea</td>\n",
" <td>36</td>\n",
" <td>IT</td>\n",
" <td>1528905631</td>\n",
" <td>100</td>\n",
" <td>39.82</td>\n",
" <td>15.79</td>\n",
" <td>70.06</td>\n",
" <td>5.30</td>\n",
" </tr>\n",
" <tr>\n",
" <th>543</th>\n",
" <td>543</td>\n",
" <td>san andres</td>\n",
" <td>68</td>\n",
" <td>PH</td>\n",
" <td>1528905632</td>\n",
" <td>100</td>\n",
" <td>13.32</td>\n",
" <td>122.68</td>\n",
" <td>83.47</td>\n",
" <td>22.64</td>\n",
" </tr>\n",
" <tr>\n",
" <th>544</th>\n",
" <td>544</td>\n",
" <td>muisne</td>\n",
" <td>92</td>\n",
" <td>EC</td>\n",
" <td>1528905633</td>\n",
" <td>84</td>\n",
" <td>0.61</td>\n",
" <td>-80.02</td>\n",
" <td>76.90</td>\n",
" <td>4.63</td>\n",
" </tr>\n",
" <tr>\n",
" <th>545</th>\n",
" <td>545</td>\n",
" <td>ati</td>\n",
" <td>20</td>\n",
" <td>TD</td>\n",
" <td>1528905633</td>\n",
" <td>25</td>\n",
" <td>13.21</td>\n",
" <td>18.34</td>\n",
" <td>104.53</td>\n",
" <td>4.97</td>\n",
" </tr>\n",
" <tr>\n",
" <th>546</th>\n",
" <td>546</td>\n",
" <td>san luis</td>\n",
" <td>0</td>\n",
" <td>AR</td>\n",
" <td>1528905472</td>\n",
" <td>53</td>\n",
" <td>-33.30</td>\n",
" <td>-66.34</td>\n",
" <td>42.43</td>\n",
" <td>2.62</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>547 rows × 10 columns</p>\n",
"</div>"
],
"text/plain": [
" City_ID City Cloudiness Country Date Humidity Lat \\\n",
"0 0 jacareacanga 0 BR 1528902000 62 -6.22 \n",
"1 1 kaitangata 100 NZ 1528905304 94 -46.28 \n",
"2 2 goulburn 20 AU 1528905078 91 -34.75 \n",
"3 3 lata 76 IN 1528905305 89 30.78 \n",
"4 4 chokurdakh 0 RU 1528905306 88 70.62 \n",
".. ... ... ... ... ... ... ... \n",
"542 542 scalea 36 IT 1528905631 100 39.82 \n",
"543 543 san andres 68 PH 1528905632 100 13.32 \n",
"544 544 muisne 92 EC 1528905633 84 0.61 \n",
"545 545 ati 20 TD 1528905633 25 13.21 \n",
"546 546 san luis 0 AR 1528905472 53 -33.30 \n",
"\n",
" Lng Max Temp Wind Speed \n",
"0 -57.76 89.60 6.93 \n",
"1 169.85 42.61 5.64 \n",
"2 149.72 44.32 10.11 \n",
"3 78.62 59.89 0.94 \n",
"4 147.90 32.17 2.95 \n",
".. ... ... ... \n",
"542 15.79 70.06 5.30 \n",
"543 122.68 83.47 22.64 \n",
"544 -80.02 76.90 4.63 \n",
"545 18.34 104.53 4.97 \n",
"546 -66.34 42.43 2.62 \n",
"\n",
"[547 rows x 10 columns]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import matplotlib as plt\n",
"\n",
"cities_path = \"Resources/cities.csv\"\n",
"cities_data = pd.read_csv(cities_path)\n",
"\n",
"cities_data"
]
},
{
"cell_type": "code",
"execution_count": null,
"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.8.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Binary file added Output Data/City Lat vs Cloudiness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Output Data/City Lat vs Humidity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Output Data/City Lat vs Max Temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Output Data/City Latitude vs Wind Speed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en-us">

<head>
<meta charset="UTF-8">
<title>Landing Page</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

<link rel="stylesheet" href="style.css">
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Latitude</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Plot
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Max Temperature</a>
<a class="dropdown-item" href="#">Humidity</a>
<a class="dropdown-item" href="#">Cloudiness</a>
<a class="dropdown-item" href="#">Wind Speed</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Comparison</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Data</a>
</div>
</li>
</ul>
</div>
</nav>
<section>
<div class ="h1">Summary: Latitude vs. X</div>
</section>

</body>


7 changes: 7 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.h1 {
font-size: 100;
font-family: cursive;
color: turquoise;
font-weight: bold;

}
Loading

0 comments on commit dbf5586

Please sign in to comment.