zcollection.collection.Collection.drop_variable#
- Collection.drop_variable(variable)[source]#
Delete the variable from the collection.
- Parameters:
variable (str) – The variable to delete.
- Raises:
ValueError – If the variable doesn’t exist in the collection or is used by the partitioning.
- Return type:
None
Example
>>> import zcollection >>> collection = zcollection.open_collection( ... "my_collection", mode="w") >>> collection.drop_variable("my_variable")