zcollection.view.View.drop_variable#

View.drop_variable(varname)[source]#

Drop a variable from the view.

Parameters:

varname (str) – The name of the variable to drop.

Raises:

ValueError – If the variable does not exist or if the variable belongs to the reference collection.

Return type:

None

Example

>>> view.drop_variable("temperature")