Open davycloud opened 1 year ago
Are you getting this error with the code in the example, or are you playing around with the code yourself?
For the first example np.nanmean
does not know how to handle an interactive object. This can be solved with .apply
like this: dfi.apply(lambda x: np.nanmean(x, axis=0))
For the second example the output of dfi.shape
is also an interactive object. To get the right output you can run .eval
on it: dfi.shape.eval()
.
Version
Problem
I was trying this demo, found interactive dataframe went error in two places:
np.nanmean
and_, cols = dfi.shape
Code
I can reproduce the issue with the following code:
Problem 1
Problem 2