Dr. Dror

Foo is not just a "Bar"

#python Articles




Custom Enums and tests

Somehow advanced usage of python's enums. Including a discussion on testing of those custom entities.

  • Tue 04 September 2018
  • HowTo

An attempt on smarter logging

Motivation Consider the case where you implement some logic somewhere, and this logic should be used from within several different places. Think of a logic and two apps using it. The logic should be yielding logging messages that would be visible as part of the running of the different apps …




  • Sat 02 September 2017
  • Stats

Why do we need to divide by n-1?

Trying to give an intuitive understanding what's the difference between a biased and unbiased estimators of variance of a sample.


Group by date from a column

(Original notebooks can be found in this gist) Assume you have data set as follows: ID Date Value x x x where each row contains an ID, a date (given as pd.Datetime) and a value. The objective is to count how many rows occur in each day. import pandas …