Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- Python: Entornos virtuales
- oyecto) parace una buena solución == virtualenv <code bash> python3 -m pip install --upgrade pip pip3 i... tools # si error setuptools pip failed with error code 1` error source venv/bin/activate # activar pip3... deactivate # desactivar rm -rf venv # eliminar </code> /via: [[https://help.dreamhost.com/hc/es/article... 95551-Instalar-y-usar-virtualenv-con-Python-3]] <code bash> pip install virtualenv # navegar a directo
- Python PycURL
- URL (más completa/compleja que **requests**) * <code bash>sudo apt install libcurl4-openssl-dev libssl-dev</code> * <code python>pip install pycurl</code> == comandos básicos con requests * <code python># Basic Commands wi
- Conda (gestor paquetes miniconda - python)
- paquetes * entornos virtuales == comandos * <code bash>conda info</code> * <code bash>conda --version</code> === entornos * crear:<code bash>conda create --name <ENTORNO> python=3.8<
- Python Pandas
- = Python Pandas * <code bash>pip3 install pandas</code> * soporte para excel: <code bash>pip3.9 install openpyxl # needed to load Excel .xlsx files pip3.9 i... all xlrd # needed to load Excel old .xls files) </code> * Estilos: [[https://docs.bokeh.org/en/latest
- Python pip
- .org/en/latest/tutorials/packaging-projects/]] <code bash>python -m pip install <paquete></code> <code bash>python -m pip install <paquete>==2.6.0</code> <code bash>python -m pip install --upgrade <paquete>
- Python decoradores
- dores-python]] == Decorador mediante una función <code python> def decorator(func): print("Decorator")... Hello() # [Output]: # Decorator # Hello World </code> == Decorador mediante dos funciones <code pyton>#print_args: Función decoradora def printArgs(func): ... 5, z=10)) # (3, 5) # {'z': 10} # 25 = 3 * 5 + 10</code> == Decorador simple mediante Clases (se puede c
- PYTHON
- ml]] * Use ''Poetry'' for package management: <code bash>curl -sSL https://install.python-poetry.org | python3 -</code> === bootstrap <code bash> mkdir my-project && cd my-project # Make sure the standard .gitignore is se... usly created venv, if activated. poetry init -q </code> === test <code bash> poetry add -g test flake8
- Python aberraciones
- = Python aberraciones * operador ternario:<code python> variable = "valor" if condicion_cierta() else "otro_valor" </code> * reducciones:<code python>my_numbers = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] even_number_list = [num for num in my_numbers if num%2 == 0] </code> * [[info:cursos:udemy:python-mega-course#che
- Python librerias
- = Python librerias {{tag>python}} == collections <code python>from collections import defaultdict var = defaultdict(int) var2 = defautldict(set)</code> * todos los elementos seteados a 0 o vacío p... s * ''from pickle import TRUE!'' -> ? == trace <code python>import ipdb; ipdb.set_trace()</code> <code python>from IPython.core import debugger BP=debugger.
- Python strings
- anisms, which are % formatting and str.format(). <code python> val = 'Geeks' print(f"{val}for{val} is a portal for {val}.") </code> <code python> import datetime today = datetime.datetime.today() print(f"{today:%B %d, %Y}") </code> Backslash Cannot be used in format string direct
- think python
- s y directorios de **cwd** === catch exceptions <code python> try: fin = open('fichero_no_existente... line fin.close() except: print "Error" </code> === databases * ''import anydbm'' * solo ... n** está deprecado a favor de **subprocess** * <code python> filename = 'book.tex' cmd = 'md5sum ' + f... rrecto // res contiene el resultado del comando </code> === Modulos * cualquier fichero que contenga
- Python Bokeh
- = Python Bokeh * <code bash>pip3 install bokeh</code> == bokeh ejemplos más ejemplos en [[development:python:pandas|]] <code python> from bokeh.plotting import figure, output... " p.yaxis.axis_label="Intensity" p.line([1,2,3],[4,5,6]) output_file("graph.html") show(p) </code>