francisco@home:~$

  • Count NaN values that are not NaN in Pandas DataFrame

    I am working with a dataset that contains lots of missing values. However, when a value is missed it is not represented as NaN but as “–”. In order to find how many missing values there are in an specific column I cannot use typical Pandas functions. Henceforth, I have...

  • How to set Python3 as default version on MacOS

    In order not to have to type everytime you want to run Python 3 python3 I wanted to link to the default version of Python. Then you need to use the following commands: Install again Python 3 with brew: brew install python Look how it is installed: ls -l /usr/local/bin/python*...

  • Moving from Tensorflow 2.0 to Pytorch

    I was having many issues with GPU memory management in a Transfer Learning problem when using Tensorflow 2.0 with Keras module. Even though I was using Inception V3 model with all the weights of the architecture freezed, the code ran out of memory. The weights of the model occupied only...