{ "cells": [ { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# Matematikai Algoritmusok és Felfedezések I.\n", "\n", "## 11. Előadás: Pandas\n", "\n", "### 2022 április 27." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# grafikonokhoz\n", "%matplotlib inline\n", "\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "# grafikonok stílusának beállítása\n", "plt.style.use('ggplot')\n", "plt.rcParams['figure.figsize'] = (15, 5)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "# Adatok beolvasása egy csv fájlból\n", "\n", "\n", "Szegedi időjárási adatokat gyűjtöttünk össze a `weather.csv` fálba" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "idojaras = pd.read_csv('weather.csv')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Formatted Date | \n", "Summary | \n", "Precip Type | \n", "Temperature (C) | \n", "Apparent Temperature (C) | \n", "Humidity | \n", "Wind Speed (km/h) | \n", "Wind Bearing (degrees) | \n", "Visibility (km) | \n", "Loud Cover | \n", "Pressure (millibars) | \n", "Daily Summary | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "2006-04-01 00:00:00.000 +0200 | \n", "Partly Cloudy | \n", "rain | \n", "9.472222 | \n", "7.388889 | \n", "0.89 | \n", "14.1197 | \n", "251.0 | \n", "15.8263 | \n", "0.0 | \n", "1015.13 | \n", "Partly cloudy throughout the day. | \n", "
1 | \n", "2006-04-01 01:00:00.000 +0200 | \n", "Partly Cloudy | \n", "rain | \n", "9.355556 | \n", "7.227778 | \n", "0.86 | \n", "14.2646 | \n", "259.0 | \n", "15.8263 | \n", "0.0 | \n", "1015.63 | \n", "Partly cloudy throughout the day. | \n", "
2 | \n", "2006-04-01 02:00:00.000 +0200 | \n", "Mostly Cloudy | \n", "rain | \n", "9.377778 | \n", "9.377778 | \n", "0.89 | \n", "3.9284 | \n", "204.0 | \n", "14.9569 | \n", "0.0 | \n", "1015.94 | \n", "Partly cloudy throughout the day. | \n", "