View Nbody.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf8 | |
import os | |
import shutil | |
import random | |
import moviepy.video.io.ImageSequenceClip | |
from PIL import Image, ImageFile | |
import numpy as np | |
import matplotlib.pyplot as plt | |
ImageFile.LOAD_TRUNCATED_IMAGES = True |
View JeuDeLaVie.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
## J'ai repris le code fait par scienceetonnante (un grand merci à lui!) : https://scienceetonnante.com/2017/12/08/le-jeu-de-la-vie/ | |
## J'ai modifié le code, pour créer un affichage qui s'adapte au centre à chaque fois, en utilisant un facteur agrandissant ainsi qu'un calcul dynamique de posX et de posY. | |
## C'est ce qui me permet, de lancer le code sur tous les fichiers ".rle" qui se trouvent dans le dossier "rle" : https://www.conwaylife.com/wiki/RLE | |
## La gestion des exceptions permet de passer les .rle ne rentrant pas dans une matrice 2500x2500. | |
## Imports & Param's : |
View Markowitz.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
get_ipython().run_line_magic('matplotlib', 'inline') | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import cvxopt as opt | |
from cvxopt import blas, solvers | |
import pandas as pd | |
# ### Param's : |
View HottelingCurve.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import math as m | |
import pandas as pd | |
import cufflinks as cf | |
import plotly.offline | |
cf.go_offline() | |
cf.set_config_file(offline=False, world_readable=True) |
View Sentiment-Analysis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataprep.data_connector import * | |
from dataprep.eda import * | |
# À obtenir via un compte twitter pour developpeur | |
client_id = '****************' | |
client_secret = '************************************************' | |
dc = Connector("twitter", _auth={"client_id":client_id, "client_secret":client_secret}) |
View Copernicus-May.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
df = pd.read_csv("ts_1month_anomaly_Global_ERA5_2T_202005_v01.csv",sep=";", dtype={0: str}) | |
View Issy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import folium | |
df = pd.read_csv('les-arbres-dissy-les-moulineaux-equipe-avec-un-code-qr.csv',sep=';') |
View Quartet.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#Fonction dont le rôle est d'obtenir les paramètres de l'équation de la droite de régression linéaire. | |
def getParams(x, y) : | |
X = np.matrix([np.ones(len(x)), x]).T | |
Y = np.matrix(y).T |
View Loi-Normale.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
get_ipython().run_line_magic('matplotlib', 'inline') | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from math import sqrt, pi, exp | |
import pylab |
View ARIMA-PIB-Français.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
from pandas import read_csv | |
from datetime import datetime | |
from matplotlib import pyplot | |
from pandas.plotting import autocorrelation_plot | |
from pandas import DataFrame | |
from statsmodels.tsa.arima_model import ARIMA | |
from matplotlib import pyplot |
NewerOlder