by Diego Calvo | Jul 17, 2017 | Python-example
Import External Python Packages Before importing them we must install them with the Command: pip install external_package Once installed to import them simply call the package name using the import command import external_package Import own Python Packages If... by Diego Calvo | Jul 17, 2017 | Python-example
Define the class to read arguments To use arguments passed by parameter in a Python script you can use the following library from argparse import ArgumentParser import sys # ArgumentParser with a description of the application parser =... by Diego Calvo | Jul 17, 2017 | Python-example
Setting up the virtual environment in PyCharm CE Initially when creating a project you can directly specify the virtual environment to use (where we can have different environments with different versions of Python) Change the virtual environment From PyCharm... by Diego Calvo | Jul 17, 2017 | Python-example
Install Python To facilitate this step and successive steps, you can install Anaconda Install Python 2.7 in Centos 7 Check Python version > python Note: When you enter Python you can see the active version of it. Use exit() to finish Check Centos version... by Diego Calvo | Jul 15, 2017 | Python-example
Reading. CSV files import os os.chdir(‘/Users/diego/Documents/test/facta_example/’) print (os.getcwd()) import pandas as pd file_csv = pd.read_csv(‘list_groups.csv’, delimiter=”;”) file_csv file_csv.describe() cell = file_csv.loc[1,...