Python

Python is an interpreted high-level general-purpose programming language. Python’s design philosophy emphasizes code readability with its notable use of significant indentation.

My growing fascination with Python πŸ”’

My growing fascination with Python πŸ”’

Lately I’ve doing a lot of blog posts about the Python programming language and the PANDAS library mainly because I am utterly amazed at how powerful, quick and convenient it is for doing my every day tasks.

I think the reason I like it so much is that it saves so much time and it allows for so much experimentation with data. With the Jupyter Notebook, you can execute a one or two lines of code at a time – allowing you to test things without completely restarting your program or loading data into memory again.

From somebody who was over reliant on spreadsheets, it’s really such a big jump forward – especially for data I process regularly. And it’s been excited for me, as there is always so much more to learn.

Ask for Forgiveness or Look Before You Leap?

Ask for Forgiveness or Look Before You Leap?

The problem with looking before leaping, is you never know if you will catch everything odd that will come your way, and still raise an exception. Therefore, you are best to handle inappropriate input as exceptions in a try/catch block rather trying to catch it in advance.
Plus it's actually faster to ask for forgiveness than permission -- as looking before leaping means you are always checking, rather then capturing the exception and dealing with it when it's raised.