Faisal
Faisal
Hey @simonwongwong hope all is well! I'll take a closer look at this sometime this week. Thanks for bringing this up and opening up the issue.
@jborchma Just want to circle back on this. Thoughts on just checking if both are empty and throwing an exception? This might be something which is never encountered (comparing 2...
I'm aligned with that. I'll try and do a quick PR here.
@jborchma So it seems like @simonwongwong is comparing arrays here. So obviously empty arrays make sense. But the following also doesn't work ``` df1 = pd.DataFrame({"some_col": [np.array([1,2]) for _ in...
@simonwongwong Are you comparing a lot of np.arrays? (Could you have arrays of > 1 length?) I'd like to think about the use case a bit more if you have...
Makes sense. I think the issue boils down to how Pandas internalises the dtype for an array. It will be an `O` (Object). But so is string, or another other...
@theianrobertson Thoughts on this issue? Dataframes with numpy arrays in columns.
Yup that’s exactly it. Not an actual empty data frame. On Sun, May 17, 2020 at 11:56 AM Jan Borchmann wrote: > So what Simon really wants is elementwise comparison...
The main issue is detecting if it is a np array. Since it comes up as an object in pandas for the dtype. We’d need to inspect the actual element...
> Yeah, on non-empty arrays it'll do a normal element wise comparison, but empty `np.array`s will never be equal If you look at my above example I’m not sure datacompy...