pymport icon indicating copy to clipboard operation
pymport copied to clipboard

Support multiple subscript operator in proxified PyObjects.

Open antl3x opened this issue 8 months ago • 3 comments

The following way to use multiple values below work:

df.item(['Age', 'Fare']).median().type
'Series'

Is possible to support something without relying in manual calling the .item() ?

This works:

df['Age'].median().type
'numpy.float64'

This is wrong (since should be a Series, and not a float value):

df['Age', 'Fare'].median().type
'numpy.float64'

This does not work:

df[['Age', 'Fare']].median().type
Uncaught TypeError: Cannot read properties of undefined (reading 'median')

antl3x avatar Oct 21 '23 21:10 antl3x