Skip to content

Commit

Permalink
collection.py: Remove the count method.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 677780736
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed Sep 23, 2024
1 parent e44bb39 commit 292f5d7
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions python/ee/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,7 @@ def aggregate_array(self, property: _arg_types.String) -> ee_list.List:
'AggregateFeatureCollection.array', self, property
)

# pylint: disable-next=redefined-builtin
def count(self, property: _arg_types.String) -> ee_number.Number:
"""Returns the number of non-null values of the selected property.
Aggregates over a given property of the objects in a collection, calculating
the number of non-null values of the property.
Args:
property: The property to use from each element of the collection.
"""

return apifunction.ApiFunction.call_(
'AggregateFeatureCollection.count', self, property
)
# TODO: count removed due to behavior change.

# pylint: disable-next=redefined-builtin
def aggregate_count(self, property: _arg_types.String) -> ee_number.Number:
Expand Down

0 comments on commit 292f5d7

Please sign in to comment.