|
29 | 29 | }, |
30 | 30 | { |
31 | 31 | "cell_type": "code", |
32 | | - "execution_count": null, |
33 | | - "id": "9eb120c9", |
| 32 | + "execution_count": 1, |
| 33 | + "id": "8de14613", |
34 | 34 | "metadata": {}, |
35 | 35 | "outputs": [], |
| 36 | + "source": [ |
| 37 | + "import pandas as pd" |
| 38 | + ] |
| 39 | + }, |
| 40 | + { |
| 41 | + "cell_type": "code", |
| 42 | + "execution_count": 2, |
| 43 | + "id": "9eb120c9", |
| 44 | + "metadata": {}, |
| 45 | + "outputs": [ |
| 46 | + { |
| 47 | + "data": { |
| 48 | + "text/html": [ |
| 49 | + "<div>\n", |
| 50 | + "<style scoped>\n", |
| 51 | + " .dataframe tbody tr th:only-of-type {\n", |
| 52 | + " vertical-align: middle;\n", |
| 53 | + " }\n", |
| 54 | + "\n", |
| 55 | + " .dataframe tbody tr th {\n", |
| 56 | + " vertical-align: top;\n", |
| 57 | + " }\n", |
| 58 | + "\n", |
| 59 | + " .dataframe thead th {\n", |
| 60 | + " text-align: right;\n", |
| 61 | + " }\n", |
| 62 | + "</style>\n", |
| 63 | + "<table border=\"1\" class=\"dataframe\">\n", |
| 64 | + " <thead>\n", |
| 65 | + " <tr style=\"text-align: right;\">\n", |
| 66 | + " <th></th>\n", |
| 67 | + " <th>weather_condition</th>\n", |
| 68 | + " <th>wind_strength</th>\n", |
| 69 | + " <th>temperature_c</th>\n", |
| 70 | + " <th>rainfall_inches</th>\n", |
| 71 | + " <th>humidity_percent</th>\n", |
| 72 | + " <th>pressure_hpa</th>\n", |
| 73 | + " </tr>\n", |
| 74 | + " </thead>\n", |
| 75 | + " <tbody>\n", |
| 76 | + " <tr>\n", |
| 77 | + " <th>0</th>\n", |
| 78 | + " <td>Sunny</td>\n", |
| 79 | + " <td>Light Breeze</td>\n", |
| 80 | + " <td>8.2</td>\n", |
| 81 | + " <td>0.13</td>\n", |
| 82 | + " <td>48.8</td>\n", |
| 83 | + " <td>1016.5</td>\n", |
| 84 | + " </tr>\n", |
| 85 | + " <tr>\n", |
| 86 | + " <th>1</th>\n", |
| 87 | + " <td>Snowy</td>\n", |
| 88 | + " <td>Gale</td>\n", |
| 89 | + " <td>1.6</td>\n", |
| 90 | + " <td>0.29</td>\n", |
| 91 | + " <td>89.6</td>\n", |
| 92 | + " <td>1009.4</td>\n", |
| 93 | + " </tr>\n", |
| 94 | + " <tr>\n", |
| 95 | + " <th>2</th>\n", |
| 96 | + " <td>Rainy</td>\n", |
| 97 | + " <td>Strong Wind</td>\n", |
| 98 | + " <td>7.3</td>\n", |
| 99 | + " <td>0.01</td>\n", |
| 100 | + " <td>100.0</td>\n", |
| 101 | + " <td>1003.3</td>\n", |
| 102 | + " </tr>\n", |
| 103 | + " <tr>\n", |
| 104 | + " <th>3</th>\n", |
| 105 | + " <td>Cloudy</td>\n", |
| 106 | + " <td>Light Breeze</td>\n", |
| 107 | + " <td>21.6</td>\n", |
| 108 | + " <td>0.62</td>\n", |
| 109 | + " <td>49.3</td>\n", |
| 110 | + " <td>1006.9</td>\n", |
| 111 | + " </tr>\n", |
| 112 | + " <tr>\n", |
| 113 | + " <th>4</th>\n", |
| 114 | + " <td>Sunny</td>\n", |
| 115 | + " <td>Calm</td>\n", |
| 116 | + " <td>12.0</td>\n", |
| 117 | + " <td>1.09</td>\n", |
| 118 | + " <td>38.6</td>\n", |
| 119 | + " <td>1016.0</td>\n", |
| 120 | + " </tr>\n", |
| 121 | + " </tbody>\n", |
| 122 | + "</table>\n", |
| 123 | + "</div>" |
| 124 | + ], |
| 125 | + "text/plain": [ |
| 126 | + " weather_condition wind_strength temperature_c rainfall_inches \\\n", |
| 127 | + "0 Sunny Light Breeze 8.2 0.13 \n", |
| 128 | + "1 Snowy Gale 1.6 0.29 \n", |
| 129 | + "2 Rainy Strong Wind 7.3 0.01 \n", |
| 130 | + "3 Cloudy Light Breeze 21.6 0.62 \n", |
| 131 | + "4 Sunny Calm 12.0 1.09 \n", |
| 132 | + "\n", |
| 133 | + " humidity_percent pressure_hpa \n", |
| 134 | + "0 48.8 1016.5 \n", |
| 135 | + "1 89.6 1009.4 \n", |
| 136 | + "2 100.0 1003.3 \n", |
| 137 | + "3 49.3 1006.9 \n", |
| 138 | + "4 38.6 1016.0 " |
| 139 | + ] |
| 140 | + }, |
| 141 | + "execution_count": 2, |
| 142 | + "metadata": {}, |
| 143 | + "output_type": "execute_result" |
| 144 | + } |
| 145 | + ], |
36 | 146 | "source": [ |
37 | 147 | "# Load the weather dataset\n", |
38 | | - "df = pd.read_csv('weather.csv')\n", |
| 148 | + "url = 'https://gperdrizet.github.io/FSA_devops/assets/data/unit2/weather.csv'\n", |
| 149 | + "df = pd.read_csv(url)\n", |
39 | 150 | "df.head()" |
40 | 151 | ] |
41 | 152 | }, |
|
224 | 335 | } |
225 | 336 | ], |
226 | 337 | "metadata": { |
| 338 | + "kernelspec": { |
| 339 | + "display_name": "Python 3", |
| 340 | + "language": "python", |
| 341 | + "name": "python3" |
| 342 | + }, |
227 | 343 | "language_info": { |
228 | | - "name": "python" |
| 344 | + "codemirror_mode": { |
| 345 | + "name": "ipython", |
| 346 | + "version": 3 |
| 347 | + }, |
| 348 | + "file_extension": ".py", |
| 349 | + "mimetype": "text/x-python", |
| 350 | + "name": "python", |
| 351 | + "nbconvert_exporter": "python", |
| 352 | + "pygments_lexer": "ipython3", |
| 353 | + "version": "3.12.12" |
229 | 354 | } |
230 | 355 | }, |
231 | 356 | "nbformat": 4, |
|
0 commit comments