Decorators to Solve Date Problems a decorator is the gateway drug into the world of Python metaprogramming. In python, everything is an object (specifically a dictionary but let's not go there) In Python, we can pass in and return any object regardless of its type. Solution 1 would be to define some function clean_dates which takes in the dataframe, cleans the date columns specified by some configuration and return the cleaned dataframe.

5m read timeFrom theforce.hashnode.dev
Post cover image
Table of contents
Functions, Functions EverywhereBecause that Wasn't Convoluted EnoughA Real-World Example

Sort: