{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "plt.style.use(\"seaborn-notebook\")\n", "import seaborn as sns\n", "cm = sns.light_palette(\"green\", as_cmap=True)" ] }, { "cell_type": "code", "execution_count": 25, "metadata": { "collapsed": false }, "outputs": [], "source": [ "wspeed = pd.DataFrame(np.random.normal(7,7, 365)).abs()" ] }, { "cell_type": "code", "execution_count": 26, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0
count365.000000
mean8.078493
std5.286526
min0.010161
25%4.003320
50%7.400571
75%11.234191
max26.713693
\n", "
" ], "text/plain": [ " 0\n", "count 365.000000\n", "mean 8.078493\n", "std 5.286526\n", "min 0.010161\n", "25% 4.003320\n", "50% 7.400571\n", "75% 11.234191\n", "max 26.713693" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "wspeed.describe()" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "sns.countplot()" ] }, { "cell_type": "code", "execution_count": 35, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def cate(ws):\n", " if ws[0] < 5:\n", " return \"Pas assez de vent\"\n", " elif ws[0] < 10:\n", " return \"Peu de vent\"\n", " elif ws[0] < 15:\n", " return \"Vent léger\"\n", " elif ws[0] < 20:\n", " return \"Bon vent\"\n", " elif ws[0] < 25:\n", " return \"Vent fort\"\n", " else:\n", " return \"Trop de vent\"" ] }, { "cell_type": "code", "execution_count": 39, "metadata": { "collapsed": false }, "outputs": [], "source": [ "wspeed[\"cat\"] = wspeed.apply(cate, axis=1)" ] }, { "cell_type": "code", "execution_count": 68, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "[,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ]" ] }, "execution_count": 68, "metadata": {}, "output_type": "execute_result" }, { "name": "stderr", "output_type": "stream", "text": [ "/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n", " (prop.get_family(), self.defaultFamily[fontext]))\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfQAAAFKCAYAAADrFq2PAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUVOXeB/DvwEgqCYICHgw9Spq8KGJJOsu8oYBycfCu\nlQXVi4dKRczUNCyzsDLjZNmBQ0epTFPUwQQUQREy7+bd8og3tGA44yAIKgw87x8s5pUjOIjMDLP9\nftZyLWfP7Of58cye+c5+Zu89MiGEABEREVk0K3MXQERERA+PgU5ERCQBDHQiIiIJYKATERFJAAOd\niIhIAuTmLuBhFBWVmrsEIiIik3Jyalfvcu6hExERSQADnYiISAIY6ERERBLAQCciIpIABjoREZEE\nMNCJiIgkgIFOREQkAQx0IiIiCWCgExERSQADnYiISAIY6ERERBLAQCciIpIABjoREZEEMNCJiIgk\nwKJ/PpXIlFatWmHuEkzq9dejzV0CET0A7qETERFJAAOdiIhIAhjoREREEsBAJyIikgAGOhERkQQw\n0ImIiCSAgU5ERCQBRgv0BQsWQKFQIDg4WL/s448/xqhRoxASEoI33ngDJSUl+vvi4+Ph5+eHgIAA\n5ObmGqssIiIiSTLahWXGjRuHF198EfPmzdMvGzRoEObMmQO5XI5PP/0U8fHxmDt3Ls6fP4/U1FSk\npqaisLAQ4eHh2LFjB6ytrR+qhkfp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0gVFRUXw9PQEADz11FN48803ER4ejpCQELz66qt12q5PcHAw4uPjoVQq\ncfXq1QcaA176lRqUmZmJN954A2lpaXB3d9cvT0pK0h8d27ZtW3z66aewsrLC3/72N2zbtg0A8M03\n36C8vBwzZszAjh07sGLFinuOQAZqTlsbNmwYRo0ahbNnz2Lp0qUoLS1FVVUVXn75ZUyaNAnHjx/H\nokWLYGVlBR8fH5w6dQrr169HdXU14uLisHv3bggh4ODggFWrVumPX2gppx0RkfnUHuVuqg+p5sRA\npxavrKwMtra2AGpOH1Gr1frTA4mI7oeBTtSCpKWlIT4+HlVVVXB1dcWyZcsaPEaBiOhRxUAnIiKS\nAIs9KI6IiIj+HwOdiIhIAhjoREREEsBAJyIikgAGOhERkQT8H0AP5X5RT8K8AAAAAElFTkSuQmCC\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "ax = sns.countplot(x=\"cat\", data=wspeed, color=\"grey\")\n", "ax.set_xlabel(\"\")\n", "ax.set_ylabel(\"Nombre de jours\")\n", "ax.set_yticks(np.arange(0, 130, 10))" ] }, { "cell_type": "code", "execution_count": 73, "metadata": { "collapsed": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n", " (prop.get_family(), self.defaultFamily[fontext]))\n" ] } ], "source": [ "ax.figure.savefig(\"./fig/cat_vent.svg\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "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.6.0" } }, "nbformat": 4, "nbformat_minor": 2 }