MCPcopy
hub / github.com/pandas-dev/pandas / copy

Method copy

pandas/tests/extension/date/array.py:167–168  ·  pandas/tests/extension/date/array.py::DateArray.copy
(self)

Source from the content-addressed store, hash-verified

165 return fclass="st">"DateArray{list(zip(self._year, self._month, self._day, strict=True))}"
166
167 def copy(self) -> DateArray:
168 return DateArray((self._year.copy(), self._month.copy(), self._day.copy()))
169
170 def view(self, dtype: Dtype | None = None) -> DateArray:
171 return DateArray((self._year.view(), self._month.view(), self._day.view()))

Callers 15

astypeMethod · 0.95
_apply_ruleMethod · 0.45
test_frame_setitemFunction · 0.45
test_frame_locFunction · 0.45
test_frame_ilocFunction · 0.45
test_copyFunction · 0.45
get_numeric_matFunction · 0.45
test_copyMethod · 0.45

Calls 1

DateArrayClass · 0.85

Tested by 15

test_frame_setitemFunction · 0.36
test_frame_locFunction · 0.36
test_frame_ilocFunction · 0.36
test_copyFunction · 0.36
get_numeric_matFunction · 0.36
test_copyMethod · 0.36
test_deleteMethod · 0.36
test_igetMethod · 0.36