This method gets the specified partition object.
partition(partition_name)
Parameter | Description | Type | Required |
---|---|---|---|
partition_name | Name of the partition to get | String | true |
The specified partition object.
CollectionNotExistException
: error if the collection does not exist.BaseException
: error if the specified partition does not exist.from pymilvus import Collection
collection = Collection("book") # Get an existing collection.
collection.partition("novel")