MCPcopy Create free account
hub / github.com/dask/dask / copy

Method copy

dask/dataframe/dask_expr/_collection.py:709–726  ·  view source on GitHub ↗

Make a copy of the dataframe This is strictly a shallow copy of the underlying computational graph. It does not affect the underlying data Parameters ---------- deep : boolean, default False The deep value must be `False` and it is declared as a

(self, deep: bool = False)

Source from the content-addressed store, hash-verified

707 return out
708
709 def copy(self, deep: bool = False):
710 """Make a copy of the dataframe
711
712 This is strictly a shallow copy of the underlying computational graph.
713 It does not affect the underlying data
714
715 Parameters
716 ----------
717 deep : boolean, default False
718 The deep value must be `False` and it is declared as a parameter just for
719 compatibility with third-party libraries like cuDF and pandas
720 """
721 if deep is not False:
722 raise ValueError(
723 "The `deep` value must be False. This is strictly a shallow copy "
724 "of the underlying computational graph."
725 )
726 return new_collection(self.expr)
727
728 @derived_from(pd.DataFrame)
729 def isin(self, values):

Callers 15

_renameFunction · 0.45
strip_unknown_categoriesFunction · 0.45
clear_known_categoriesFunction · 0.45
drop_by_shallow_copyFunction · 0.45
_categorize_blockFunction · 0.45
_to_string_dtypeFunction · 0.45
_Function · 0.45
_non_agg_chunkFunction · 0.45
_var_chunkFunction · 0.45
_cov_chunkFunction · 0.45
assignFunction · 0.45
assign_indexFunction · 0.45

Calls 1

new_collectionFunction · 0.90

Tested by 15

test_groupby_group_keysFunction · 0.36
countFunction · 0.36
test_pivot_table_failsFunction · 0.36
test_delFunction · 0.36
test_setitemFunction · 0.36
test_copyFunction · 0.36
test_array_assignmentFunction · 0.36