0

Very strange problem that occured once I updated Spyder and Anaconda to its latest version This is really just a p-value calculation script for sum_cv and convs_count to see if the incremental lift % on orders and revenues is statistically significant. So both convs_count and sum_cv calculations worked right before I updated Spyder to 5.3.3. But now it shows this error "data type <class 'numpy.object_'> not inexact" So im guessing the stat package "db_dtypes" was updated and included something that caused this error. Here is the full error message:


File "/Users/macbookuser/opt/anaconda3/lib/python3.9/site-packages/spyder_kernels/py3compat.py", line 356, in compat_exec exec(code, globals, locals)

File "/Users/macbookuser/.spyder-py3/subcampaign-p-value.py", line 158, in stat, p = ttest_ind(test, control, equal_var=False)

File "/Users/macbookuser/opt/anaconda3/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 6584, in ttest_ind v1 = _var(a, axis, ddof=1)

File "/Users/macbookuser/opt/anaconda3/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 1247, in _var var = _moment(x, 2, axis, mean=mean)

File "/Users/macbookuser/opt/anaconda3/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 1220, in _moment eps = np.finfo(a_zero_mean.dtype).resolution * 10

File "/Users/macbookuser/opt/anaconda3/lib/python3.9/site-packages/numpy/core/getlimits.py", line 398, in new raise ValueError("data type %r not inexact" % (dtype))

ValueError: data type <class 'numpy.object_'> not inexact


What would be the cause of this error? Thanks all!

I may need to try to update dbtypes to an older version and see if it runs

Kevim
  • 1
  • 1

0 Answers0