From c9406ed777b1b5e9f677accba8297dd57e605f33 Mon Sep 17 00:00:00 2001 From: 39781cc7cca0dc30af9d6060ede9947c <39781cc7cca0dc30af9d6060ede9947c@app-learninglab.inria.fr> Date: Wed, 15 Apr 2020 10:38:59 +0000 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20calculs=20FFT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo3/exercice.ipynb | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/module3/exo3/exercice.ipynb b/module3/exo3/exercice.ipynb index e355021..c087333 100644 --- a/module3/exo3/exercice.ipynb +++ b/module3/exo3/exercice.ipynb @@ -733,10 +733,42 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 33, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "# Import des librairies\n", + "import scipy.fftpack" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": {}, + "outputs": [], + "source": [ + "yf = pd.Series(scipy.fftpack.fft(data['untrend_data']))" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "dtype('complex128')" + ] + }, + "execution_count": 45, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "yf.dtype" + ] }, { "cell_type": "code", -- 2.18.1