For loop in Python

The For loop in Python has some different features than other programming languages. I leave you what I am learning to get the most out of one of the most used loops.

In Python it is intended to iterate through an iterable object, be it a list, an object, or another element.

The following structure is

Read

How to run .py files

how to run .py files with Python code

The files with a .py extension contain Python programming language code. In this way when you execute the file that sequence of code is executed.

Unlike a .sh file which executes instructions that any Linux system can execute, for a .py file to work you will have to install Python.

This is the first thing you have to do if you want to start learning to program with Python.

Read

How to convert tables from PDF to Excel or CSV with Tabula

Pass and convert pdf to csv and excel

Looking at the historical data offered by a meteorological observatory in my city, I see that they only offer them graphically and for download as PDF. I don't understand why they don't let you download them in csv, which would be much more useful for everyone.

So I've been looking for one solution to pass these tables from pdf to csv or if someone wants to format Excel or Libre Office. I like csv because with a csv you do everything you can handle it with python and its libraries or you can easily import it into any spreadsheet.

As the idea is to get an automated process, what I want is a script to work with Python and this is where Tabula comes in.

Read

How to install Keras and TensorFlow from backend on Ubuntu

how to install keras on ubuntu

After finishing the Machine Learning course, I was looking where to continue. The development environments used in the Octave / Matlab prototyping course are not what people use, so you have to jump to something higher quality. Among the candidates that have been recommended to me the most is Keras, using backend TensorFlow. I'm not going to go into whether Keras is better than other tools or other frameworks or whether to choose TensorFlow or Theano. I'm just going to explain how it can be installed in Ubuntu.

First, I tried to install it from the documentation of the official pages, and it was impossible, I always had an error, an unresolved question. In the end I went to find specific tutorials on how to install keras in Ubuntu And yet I have spent two days spending a lot of time at night. In the end I have achieved it and I leave you how I have done it in case it can pave the way for you.

As we are going to follow the steps recommended by the websites that I leave you from sources at the end of the tutorial, we are going to install PIP that I did not have, to manage the packages. pip on linux it's just that, a package management system written in python.

sudo apt-get install python3-pip sudo apt install python-pip

Read