py-why / dowhy

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.
https://www.pywhy.org/dowhy
MIT License
7.13k stars 935 forks source link

Fix issue #1254: pass the variable 'categorical' #1256

Closed Yangliu-SY closed 1 month ago

Yangliu-SY commented 1 month ago

pass the variable 'categorical' instead of the method 'is_categorical'

Based on the context of the codes, the variable 'categorical' should be passed in the function call of '_estimate_conditional_expectations' instead of the method 'is_categorical'

bloebp commented 1 month ago

@all-contributors please add @Yangliu-SY for code.

allcontributors[bot] commented 1 month ago

@bloebp

I've put up a pull request to add @Yangliu-SY! :tada: