question:
Using the uncertainties package in Python, can I list from which variables a variable depends on?
reply:
| Date,Country,Confirmed,Recovered,Deaths | |
| 2020-01-22,Afghanistan,0,0,0 | |
| 2020-01-22,Albania,0,0,0 | |
| 2020-01-22,Algeria,0,0,0 | |
| 2020-01-22,Andorra,0,0,0 | |
| 2020-01-22,Angola,0,0,0 | |
| 2020-01-22,Antigua and Barbuda,0,0,0 | |
| 2020-01-22,Argentina,0,0,0 | |
| 2020-01-22,Armenia,0,0,0 | |
| 2020-01-22,Australia,0,0,0 |
question:
Using the uncertainties package in Python, can I list from which variables a variable depends on?
reply:
can I list the variables from which a variable depende in the context of the Python uncertainties packages ufloats?
In the uncertainties package for Python, each ufloat object represents a value with associated uncertainties and can track which variables it depends on. You can access these dependencies through the nominal_value, std_dev, and depends attributes of the ufloat objects.
Here's how you can list the variables from which a particular ufloat depends:
from uncertainties import ufloat