In this short article I will show you how to use dateutil’s parse, relativedelta and rrule to make it easier to work with datetimes in Python.
Articles on Concepts
A Python Orientation – How to Get Started
By Andrew Knight on 17 August 2018
Python is a wonderful language for both beginners and expert programmers, but getting started can be daunting. Which version should I use? Which editors are best? What do you mean there are different implementations and environments? Here’s a guide to help navigate these big FAQs.
Learning Python Decorators by Example
By Bob Belderbos on 20 October 2017
Decorators are a sometimes overlooked feature and they might be hard to grasp for beginning Pythonistas. I agree with Aaron Maxwell that mastering them “can massively magnify the positive impact of the code you write”, so make sure you add them to your toolkit if not done so already. In this article I explain what they do, why you want to use them and give some practical examples.
The Importance of Refactoring Code
By Julian Sequeira on 13 July 2017
In this quick post I discuss why refactoring code is one of the most important parts of the learning process.
Next Time I Will Use Pandas to Parse Html Tables
By Bob Belderbos on 8 June 2017
Last week I did some html table parsing with BeautifulSoup and regex. It turns out there is an easier way to do this: Pandas.
Generators are Awesome, Learning by Example
By Julian Sequeira on 17 March 2017
Learn what a Generator is and check out some different examples.
Don’t let mutability of compound objects fool you!
By Bob Belderbos on 7 March 2017
In this article I explain the difference between shallow versus deep copy with a working example. It’s an important concept when working with compound objects.
Write Pythonic Code Like a Seasoned Developer Review
By Julian Sequeira on 23 February 2017
Review of Michael Kennedy’s Brilliant Pythonic Code Course
Everything is an Object, Python OOP primer
By Bob Belderbos on 24 January 2017
I created a notebook on OOP (object oriented programming) in Python.
Python Iteration
By Julian Sequeira on 19 January 2017
Iteration in Python is incredibly simple compared to C and other languages. It’s easy… maybe a little TOO easy…