DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
Currently, with pandas version 2.2.2, calls to .groupby() raise the warning below:
FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.
Solution
To retain current behavior and silence this warning, observed=False was added to all calls to .groupby()
Problem
Currently, with pandas version 2.2.2, calls to .groupby() raise the warning below:
FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.
Solution
To retain current behavior and silence this warning, observed=False was added to all calls to .groupby()