pymport
pymport copied to clipboard
Support multiple subscript operator in proxified PyObjects.
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')