/redpanda

redpanda is a collection of pandas pipes that are for general use

Primary LanguageJupyter NotebookMIT LicenseMIT

redpanda

redpanda is a collection of pandas pipes that are for general use

alchemy unittest

A rather tedious extension of the MagicMock object to create a magic database, so that you can do some unittesting on sql alchemy queries

Pandas Pipes

Some (mostly notebooks) with handy pipe functions for pandas

pipe_where

Because of the speed of np.where, many people choose to use it. I've seen a number of constructions where there is a group of conditions to assign one category, and otherwise we assign the negative category. However, nesting np.where under PEP8 leads to a horrible code. The notebook introduces a pipe-able function that takes care of the nested where construction, while allowing the code to look readable.

pipe_check_many_to_many

2 calls to check if a join has led to an increase in rows and if that is wanted