_Originally posted by @anjsudh in https://github.com/pandas-dev/pandas/pull/23321_