MCPcopy
hub / github.com/quantopian/zipline / copy

Method copy

zipline/lib/adjusted_array.py:214–224  ·  view source on GitHub ↗

Copy an adjusted array, deep-copying the ``data`` array.

(self)

Source from the content-addressed store, hash-verified

212 self._invalidated = False
213
214 def copy(self):
215 """Copy an adjusted array, deep-copying the ``data`` array.
216 """
217 if self._invalidated:
218 raise ValueError('cannot copy invalidated AdjustedArray')
219
220 return type(self)(
221 self.data.copy(order='F'),
222 self.adjustments,
223 self.missing_value,
224 )
225
226 def update_adjustments(self, adjustments, method):
227 """

Callers 15

test_copyMethod · 0.95
extend_backMethod · 0.80
get_currentMethod · 0.80
asset_writer.pyFile · 0.80
_check_symbol_mappingsFunction · 0.80
_write_df_to_tableMethod · 0.80
as_categoricalMethod · 0.80
astypeMethod · 0.80
traverseMethod · 0.80
_df_dtypesMethod · 0.80
write_frameMethod · 0.80
_write_dividendsMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_copyMethod · 0.76
test_setitem_arrayMethod · 0.64
init_class_fixturesMethod · 0.64
test_readMethod · 0.64
make_equity_infoMethod · 0.64