You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run tests.arrays.test_integer TestArithmeticOps.test_error in the REPL, need to produce the data arg that gets passed to test_error. data is defined in a fixture:
I think having an actual repr for instances of that dtype may help. with the confusion. We could also check in coerce_to_array whether the dtype is a class, rather than an instance.
Might leave this open to see how things can be improved.
I think part of the confusion is that NumPy's top-level np.<dtype> functions / classes are kinda weird. You're expected to pass the class in places where we expect the dtypes.
pd.Series([1, 2], dtype=np.int32)
rather than np.int32() which returns... something.
pyarrow's pa.array() expects instances of its top-level types, rather than the class, so we're consistent with pyarrow here.
Trying to run tests.arrays.test_integer TestArithmeticOps.test_error in the REPL, need to produce the
data
arg that gets passed totest_error
.data
is defined in a fixture:Trying to do this manually:
What am I missing here? Figuring out exactly what is tested should be really easy.
The text was updated successfully, but these errors were encountered: