Unhashable in Python - Getting the unique number of locations in a GeoDataFrame

Posted on September 14, 2018 in Python

I encounter an unhashable type error when trying to get the unique number of geometries in a GeoDataFrame, and we learn about mutability (vs immutability) of Python objects in order to sidestep the issue.


Continue reading

Notes on installing CUDA, CuDNN and Tensorflow on Manjaro

Posted on August 24, 2018 in Linux

An in-depth, step-by-step guide to installing CUDA, CuDNN and Tensorflow on Linux with an NVIDIA GeFORCE GTX960 graphics card.


Continue reading

Higher-level functions in Python, Part 3 - filter

Posted on June 14, 2018 in Python

In our final installment for the Higher Level Function in Python Series, we dive into the Python filter function. No sidetracks this time around. We simply take a look at how it's used, try to find a way where it would be superior to list comprehensions, fail, and conclude the series.


Continue reading

Higher-level functions in Python, Part 2 - reduce

Posted on June 04, 2018 in Python

We go through uses of the Python reduce function, when it's useful and its performance benefits. This time, we spend some time exploring function composition, and how to manage large function chains, e.g. in a data processing pipeline.


Continue reading

Higher-level functions in Python, Part 1 - map

Posted on May 30, 2018 in Python

We go through uses of the Python map function, when it's useful and its performance benefits, and get sidetracked into benchmarking different syntaxes for exponential expressions.


Continue reading

Introduction to the Python Scientific Ecosystem, Part 2

Posted on August 10, 2017 in Python

A general primer on Python for science and engineering, with an emphasis on the SciPy ecosystem of packages.


Continue reading

Introduction to the Python Scientific Ecosystem, Part 1

Posted on August 03, 2017 in Python

A general primer on Python for science and engineering, with an emphasis on the SciPy ecosystem of packages.


Continue reading