def copy(self, deep=False):
left = self.left.copy(deep=True) if deep else self.left<EOL>right = self.right.copy(deep=True) if deep else self.right<EOL>closed = self.closed<EOL>return type(self).from_arrays(left, right, closed=closed)<EOL>
Return a copy of the array.

Parameters
----------
deep : bool, default False
    Also copy the underlying data backing this array.

Returns
-------
IntervalArray