10 liens privés
SPEDIFEN
import pandas as pd
df = pd.read_csv(r"C:\Users\micault.DOMPHILYO1\Documents\Perso\temp.csv", header= None, index_col =1)
df.drop(0, axis=1, inplace=True)
df.columns = ['temp', 'temp_dehors', 'conso_maison']
df.index = pd.to_datetime(df.index)
import numpy as np
df.replace('\N',np.nan, inplace = True)
df.temp.astype('float64')
df.temp = df.temp.astype('float64')
df.temp_dehors = df.temp_dehors.astype('float64')
df.conso_maison = df.conso_maison.astype('float64')
from matplotlib import pyplot as plt
df2 = df.resample("M").mean()
plt.plot_date(df2.index, df2.temp_dehors)
plt.plot_date(df2.index, df2.conso_maison)
plt.show()
data table html
rendre visible des éléments
pour avoir plusieur wgsi sur le meme apache
Lors de la déclaration de un form o. Peut lui passer une instance pour le mettre sur un enregistrement de notre bdd
L attribut place holder permet de mettre un helptext aux input
Pour ne pas mettre de label à u. Firm simplement mettre label =''
pour pas vider un formulaire Django il suffit de pas faire de render a la fin du post cf video 23 de try dango
autoriser firefox à ouvrir les sites web locaux : créer un fichier user.js situé dans le répertoire du profil utilisateur : C:\Users\micault.DOMPHILYO1\AppData\Roaming\Mozilla\Firefox\Profiles\v9tqejhw.default
et contenant :
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://127.0.0.1:8000");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
import rpy2, pandas as pd, sys
from rpy2.robjects.packages import importr
from rpy2 import robjects
from rpy2.robjects import r, pandas2ri, Formula
#inport des librairies R
utils = importr("emmeans", on_conflict="warn")
créer un nouvel environnement dans anaconda (sans installer R) et lancer un terminal windows avec cet environnement
On installe R avec la version qu’on veut et r-studio:
conda install -c r r=3.4.3
conda install rstudio
démarrer r-studio avec anaconda (ou rstudio en ligne de commande)
installer les packages:
install.packages('emmeans')
si le package n'est pas listé il faut forcer le dépot, car conda utilise son propre dépot (qui n'est pas un dépot cran)
install.packages('emmeans', repos='http://cran.us.r-project.org')
(selon stackoverflow ca marche qu'avec le dépot US : https://stackoverflow.com/questions/34705917/conda-how-to-install-r-packages-that-are-not-available-in-r-essentials)
(j'ai pas testé avec un dépôt francais mais bon peu importe)
name: test-r-344
channels:
- r
- defaults
dependencies: - alabaster=0.7.10=py36hcd07829_0
- asn1crypto=0.24.0=py36_0
- babel=2.5.3=py36_0
- backcall=0.1.0=py36_0
- blas=1.0=mkl
- bleach=2.1.3=py36_0
- ca-certificates=2018.03.07=0
- certifi=2018.4.16=py36_0
- cffi=1.11.5=py36h945400d_0
- chardet=3.0.4=py36h420ce6e_1
- colorama=0.3.9=py36h029ae33_0
- cryptography=2.2.2=py36hfa6e2cd_0
- cycler=0.10.0=py36h009560c_0
- decorator=4.3.0=py36_0
- docutils=0.14=py36h6012d8f_0
- entrypoints=0.2.3=py36hfd66bb0_2
- font-ttf-dejavu-sans-mono=2.37=h6964260_0
- font-ttf-inconsolata=2.001=hcb22688_0
- font-ttf-source-code-pro=2.030=h7457263_0
- font-ttf-ubuntu=0.83=h8b1ccd4_0
- fonts-anaconda=1=h8fa9717_0
- freetype=2.8=h51f8f2c_1
- html5lib=1.0.1=py36h047fa9f_0
- icc_rt=2017.0.4=h97af966_0
- icu=58.2=ha66f8fd_1
- idna=2.6=py36h148d497_1
- imagesize=1.0.0=py36_0
- intel-openmp=2018.0.0=8
- ipykernel=4.8.2=py36_0
- ipython=6.3.1=py36_0
- ipython_genutils=0.2.0=py36h3c5d0ee_0
- jedi=0.12.0=py36_0
- jinja2=2.10=py36h292fed1_0
- jpeg=9b=hb83a4c4_2
- jsonschema=2.6.0=py36h7636477_0
- jupyter_client=5.2.3=py36_0
- jupyter_core=4.4.0=py36h56e9d50_0
- kiwisolver=1.0.1=py36h12c3424_0
- libpng=1.6.34=h79bbb47_0
- m2-bash=4.3.042=5
- m2-gcc-libs=5.3.0=4
- m2-heimdal=1.5.3=10
- m2-heimdal-libs=1.5.3=10
- m2-icu=56.1=2
- m2-libcrypt=1.3=2
- m2-libdb=5.3.28=3
- m2-libedit=3.1=20150326
- m2-libopenssl=1.0.2.g=2
- m2-libreadline=6.3.008=8
- m2-libsqlite=3.10.0.0=2
- m2-msys2-runtime=2.5.0.17080.65c939c=3
- m2-ncurses=6.0.20160220=2
- m2-openssh=7.1p2=2
- m2-openssl=1.0.2.g=2
- m2-zlib=1.2.8=4
- m2w64-bzip2=1.0.6=6
- m2w64-ca-certificates=20150426=103
- m2w64-diffutils=3.3.2=2
- m2w64-expat=2.1.1=2
- m2w64-gcc-libgfortran=5.3.0=6
- m2w64-gcc-libs=5.3.0=7
- m2w64-gcc-libs-core=5.3.0=7
- m2w64-gettext=0.19.7=2
- m2w64-gmp=6.1.0=2
- m2w64-grep=2.24=2
- m2w64-libffi=3.2.1=4
- m2w64-libiconv=1.14=6
- m2w64-libtasn1=4.7=2
- m2w64-libwinpthread-git=5.0.0.4634.697f757=2
- m2w64-openssl=1.0.2.g=2
- m2w64-p11-kit=0.23.2=2
- m2w64-pcre=8.38=2
- m2w64-wineditline=2.101=5
- m2w64-zlib=1.2.8=10
- markupsafe=1.0=py36h0e26971_1
- matplotlib=2.2.2=py36h153e9ff_0
- mistune=0.8.3=py36_0
- mkl=2018.0.2=1
- mkl_fft=1.0.1=py36h452e1ab_0
- mkl_random=1.0.1=py36h9258bd6_0
- msys2-conda-epoch=20160418=1
- nbconvert=5.3.1=py36h8dc0fde_0
- nbformat=4.4.0=py36h3a5bc1b_0
- notebook=5.4.1=py36_0
- numpy=1.14.3=py36h9fa60d3_1
- numpy-base=1.14.3=py36h555522e_1
- numpydoc=0.8.0=py36_0
- openssl=1.0.2o=h8ea7d77_0
- packaging=17.1=py36_0
- pandas=0.23.0=py36h830ac7b_0
- pandoc=1.19.2.1=hb2460c7_1
- pandocfilters=1.4.2=py36h3ef6317_1
- parso=0.2.0=py36_0
- pickleshare=0.7.4=py36h9de030f_0
- pip=9.0.3=py36_0
- prompt_toolkit=1.0.15=py36h60b8f86_0
- pycparser=2.18=py36hd053e01_1
- pygments=2.2.0=py36hb010967_0
- pyopenssl=17.5.0=py36h5b7d817_0
- pyparsing=2.2.0=py36h785a196_1
- pyqt=5.6.0=py36hb5ed885_5
- pysocks=1.6.8=py36_0
- python=3.6.5=h0c2934d_0
- python-dateutil=2.7.2=py36_0
- pytz=2018.4=py36_0
- pywinpty=0.5.1=py36_0
- pyzmq=17.0.0=py36hfa6e2cd_0
- qt=5.6.2=vc14h6f8c307_12
- r-assertthat=0.2.0=mro343h889e2dd_0
- r-backports=1.1.2=mro343h889e2dd_0
- r-base64enc=0.1_3=mro343h889e2dd_0
- r-bh=1.65.0_1=mro343h889e2dd_0
- r-bindr=0.1=mro343h889e2dd_0
- r-bindrcpp=0.2=mro343h889e2dd_0
- r-bit=1.1_12=mro343h889e2dd_0
- r-bit64=0.9_7=mro343h889e2dd_0
- r-bitops=1.0_6=mro343h889e2dd_0
- r-blob=1.1.0=mro343h889e2dd_0
- r-broom=0.4.3=mro343h889e2dd_0
- r-callr=1.0.0=mro343h889e2dd_0
- r-caret=6.0_78=mro343h889e2dd_0
- r-catools=1.17.1=mro343h889e2dd_0
- r-cellranger=1.1.0=mro343h889e2dd_0
- r-cli=1.0.0=mro343h889e2dd_0
- r-clipr=0.4.0=mro343h889e2dd_0
- r-colorspace=1.3_2=mro343h889e2dd_0
- r-config=0.2=mro343h889e2dd_0
- r-crayon=1.3.4=mro343h889e2dd_0
- r-cvst=0.2_1=mro343h889e2dd_0
- r-data.table=1.10.4_3=mro343h889e2dd_0
- r-dbi=0.7=mro343h889e2dd_0
- r-dbplyr=1.1.0=mro343h889e2dd_0
- r-ddalpha=1.3.1=mro343h889e2dd_0
- r-deoptimr=1.0_8=mro343h889e2dd_0
- r-dichromat=2.0_0=mro343h889e2dd_0
- r-digest=0.6.13=mro343h889e2dd_0
- r-dimred=0.1.0=mro343h889e2dd_0
- r-dplyr=0.7.4=mro343h889e2dd_0
- r-drr=0.0.2=mro343h889e2dd_0
- r-essentials=3.4.3=mro343_0
- r-evaluate=0.10.1=mro343h889e2dd_0
- r-forcats=0.2.0=mro343h889e2dd_0
- r-formatr=1.5=mro343h889e2dd_0
- r-ggplot2=2.2.1=mro343h889e2dd_0
- r-glmnet=2.0_13=mro343h889e2dd_0
- r-glue=1.2.0=mro343h889e2dd_0
- r-gower=0.1.2=mro343h889e2dd_0
- r-gtable=0.2.0=mro343h889e2dd_0
- r-haven=1.1.0=mro343h889e2dd_0
- r-hexbin=1.27.1=mro343h889e2dd_0
- r-highr=0.6=mro343h889e2dd_0
- r-hms=0.4.0=mro343h889e2dd_0
- r-htmltools=0.3.6=mro343h889e2dd_0
- r-htmlwidgets=0.9=mro343h889e2dd_0
- r-httpuv=1.3.5=mro343h889e2dd_0
- r-httr=1.3.1=mro343h889e2dd_0
- r-ipred=0.9_6=mro343h889e2dd_0
- r-irdisplay=0.4.4=mro343h889e2dd_0
- r-irkernel=0.8.11=mro343_0
- r-kernlab=0.9_25=mro343h889e2dd_0
- r-knitr=1.18=mro343h889e2dd_0
- r-labeling=0.3=mro343h889e2dd_0
- r-lava=1.5.1=mro343h889e2dd_0
- r-lazyeval=0.2.1=mro343h889e2dd_0
- r-lubridate=1.7.1=mro343h889e2dd_0
- r-magrittr=1.5=mro343h889e2dd_0
- r-maps=3.2.0=mro343h889e2dd_0
- r-markdown=0.8=mro343h889e2dd_0
- r-memoise=1.1.0=mro343h889e2dd_0
- r-mime=0.5=mro343h889e2dd_0
- r-miniui=0.1.1=mro343h889e2dd_0
- r-mnormt=1.5_5=mro343h889e2dd_0
- r-modelmetrics=1.1.0=mro343h889e2dd_0
- r-modelr=0.1.1=mro343h889e2dd_0
- r-mongolite=1.4=mro343h889e2dd_0
- r-munsell=0.4.3=mro343h889e2dd_0
- r-numderiv=2016.8_1=mro343h889e2dd_0
- r-odbc=1.1.3=mro343h889e2dd_0
- r-openssl=0.9.9=mro343h889e2dd_0
- r-packrat=0.4.8_1=mro343h889e2dd_0
- r-pbdzmq=0.2_6=mro343h889e2dd_0
- r-pillar=1.0.1=mro343h889e2dd_0
- r-pkgconfig=2.0.1=mro343h889e2dd_0
- r-pki=0.1_5.1=mro343h889e2dd_0
- r-plogr=0.1_1=mro343h889e2dd_0
- r-plyr=1.8.4=mro343h889e2dd_0
- r-prodlim=1.6.1=mro343h889e2dd_0
- r-profvis=0.3.4=mro343h889e2dd_0
- r-psych=1.7.8=mro343h889e2dd_0
- r-purrr=0.2.4=mro343h889e2dd_0
- r-quantmod=0.4_12=mro343h889e2dd_0
- r-randomforest=4.6_12=mro343h889e2dd_0
- r-rappdirs=0.3.1=mro343h889e2dd_0
- r-rbokeh=0.6.3=mro343_0
- r-rcolorbrewer=1.1_2=mro343h889e2dd_0
- r-rcpp=0.12.14=mro343h889e2dd_0
- r-rcpproll=0.2.2=mro343h889e2dd_0
- r-rcurl=1.95_4.9=mro343h889e2dd_0
- r-readr=1.1.1=mro343h889e2dd_0
- r-readxl=1.0.0=mro343h889e2dd_0
- r-recipes=0.1.1=mro343h889e2dd_0
- r-rematch=1.0.1=mro343h889e2dd_0
- r-repr=0.12.0=mro343h889e2dd_0
- r-reprex=0.1.1=mro343h889e2dd_0
- r-reshape2=1.4.3=mro343h889e2dd_0
- r-rjava=0.9_9=mro343h889e2dd_0
- r-rjdbc=0.2_5=mro343h889e2dd_0
- r-rjsonio=1.3_0=mro343h889e2dd_0
- r-rlang=0.1.6=mro343h889e2dd_0
- r-rmarkdown=1.8=mro343h889e2dd_0
- r-robustbase=0.92_8=mro343h889e2dd_0
- r-rprojroot=1.3_1=mro343h889e2dd_0
- r-rsconnect=0.8.5=mro343h889e2dd_0
- r-rsqlite=2.0=mro343h889e2dd_0
- r-rstudioapi=0.7=mro343h889e2dd_0
- r-rvest=0.3.2=mro343h889e2dd_0
- r-scales=0.5.0=mro343h889e2dd_0
- r-selectr=0.3_1=mro343h889e2dd_0
- r-sfsmisc=1.1_1=mro343h889e2dd_0
- r-shiny=1.0.5=mro343h889e2dd_0
- r-sourcetools=0.1.6=mro343h889e2dd_0
- r-sparklyr=0.6.4=mro343h889e2dd_0
- r-stringi=1.1.6=mro343h889e2dd_0
- r-stringr=1.2.0=mro343h889e2dd_0
- r-tibble=1.4.1=mro343h889e2dd_0
- r-tidyr=0.7.2=mro343h889e2dd_0
- r-tidyselect=0.2.3=mro343h889e2dd_0
- r-tidyverse=1.2.1=mro343h889e2dd_0
- r-timedate=3042.101=mro343h889e2dd_0
- r-ttr=0.23_2=mro343h889e2dd_0
- r-utf8=1.1.2=mro343h889e2dd_0
- r-uuid=0.1_2=mro343h889e2dd_0
- r-viridislite=0.2.0=mro343h889e2dd_0
- r-whisker=0.3_2=mro343h889e2dd_0
- r-withr=2.1.1=mro343h889e2dd_0
- r-xml2=1.1.1=mro343h889e2dd_0
- r-xtable=1.8_2=mro343h889e2dd_0
- r-xts=0.10_1=mro343h889e2dd_0
- r-yaml=2.1.16=mro343h889e2dd_0
- r-zoo=1.8_0=mro343h889e2dd_0
- requests=2.18.4=py36h4371aae_1
- rpy2=2.9.1=py36mro343_0
- rstudio=1.1.383=vc14h5b9a52b_2
- send2trash=1.5.0=py36_0
- setuptools=39.0.1=py36_0
- simplegeneric=0.8.1=py36_2
- sip=4.18.1=py36h9c25514_2
- six=1.11.0=py36h4db2310_1
- snowballstemmer=1.2.1=py36h763602f_0
- sphinx=1.7.2=py36_0
- sphinxcontrib=1.0=py36hbbac3d2_1
- sphinxcontrib-websupport=1.0.1=py36hb5e5916_1
- sqlite=3.23.1=h35aae40_0
- terminado=0.8.1=py36_1
- testpath=0.3.1=py36h2698cfe_0
- tornado=5.0.2=py36_0
- traitlets=4.3.2=py36h096827d_0
- typing=3.6.4=py36_0
- urllib3=1.22=py36h276f60a_0
- vc=14=h0510ff6_3
- vs2015_runtime=14.0.25123=3
- wcwidth=0.1.7=py36h3d5aa90_0
- webencodings=0.5.1=py36h67c50ae_1
- wheel=0.31.0=py36_0
- win_inet_pton=1.0.1=py36he67d7fd_1
- wincertstore=0.2=py36h7fe50ca_0
- winpty=0.4.3=4
- xlrd=1.1.0=py36h1cb58dc_1
- zlib=1.2.11=h8395fce_2
- _r-mutex=1.0.0=mro_2
- mro-base=3.4.3=0
- mro-basics=3.4.3=0
- r=3.4.3=mro343_0
- r-boot=1.3_20=mro343_0
- r-checkpoint=0.4.3=mro343_0
- r-class=7.3_14=mro343_0
- r-cluster=2.0.6=mro343_0
- r-codetools=0.2_15=mro343_0
- r-curl=3.1=mro343_0
- r-deployrrserve=9.0.0=mro343_0
- r-doparallel=1.0.12=mro343_0
- r-foreach=1.4.5=mro343_0
- r-foreign=0.8_69=mro343_0
- r-iterators=1.0.9=mro343_0
- r-jsonlite=1.5=mro343_0
- r-kernsmooth=2.23_15=mro343_0
- r-lattice=0.20_35=mro343_0
- r-mass=7.3_47=mro343_0
- r-matrix=1.2_12=mro343_0
- r-mgcv=1.8_22=mro343_0
- r-microsoftr=3.4.3.0097=mro343_0
- r-nlme=3.1_131=mro343_0
- r-nnet=7.3_12=mro343_0
- r-png=0.1_7=mro343_0
- r-r6=2.2.2=mro343_0
- r-recommended=3.4.3=mro343_0
- r-revoioq=8.0.9=mro343_0
- r-revomods=11.0.0=mro343_0
- r-revoutilsmath=10.0.1=mro343_0
- r-rpart=4.1_11=mro343_0
- r-runit=0.4.26=mro343_0
- r-spatial=7.3_11=mro343_0
- r-survival=2.41_3=mro343_0
- r-emmeans=1.1.3=mro343_0
- pip:
- et-xmlfile==1.0.1
- jdcal==1.4
- openpyxl==2.5.4
prefix: C:\Users\micault.DOMPHILYO1\AppData\Local\Continuum\anaconda3\envs\r-343
;Genere par Cura-by-Dagoma pour Discovery200 - Gcode de debouchage buse
G91 ;relative positioning
G1 Z7
G90 ;absolute positioning
G28 X
M106 ;start fan full power
M109 S180
G28 X
G28 Y
G01 X10 Y100
G28 Z
M104 S200
G1 Z100
G1 X100 Y0 F3000
G91 ;relative positioning
G1 X-10
G1 X20
G1 X-20
G1 X20
G1 X-20
G1 X10