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 pyfracgen as pf | |
import numpy as np | |
from matplotlib import pyplot as plt | |
import random | |
from pathlib import Path | |
import time |
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 |
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 : |
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 : |
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) |
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}) |
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}) | |
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=';') |
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 |
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 |
NewerOlder