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
def calcule(a, b, c) : | |
return (a+b) *c | |
a = calcule(1,2,3) | |
b = calcule ('pommes ', 'et oranges, ', 3) | |
print(a) | |
print(b) | |
# Les entiers et les str n'ont pas de lien entre eux, pourtant la fonction calcule() ne provoque pas d'erreurs |
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
import math | |
import matplotlib.pyplot as plt | |
X = 50 | |
X0 = 30 | |
L = 30000 | |
K = 0.5 | |
#X indique le temps, supposons qu'il commence au jour 0 et s'arrête après 50 jours. | |
#X0 indique le moment où la croissance exponentielle s'arrête, disons après 30 jours. |
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 |
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 |
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 | |
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 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
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 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
#!/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 : |