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)
| 743 | return out |
| 744 | |
| 745 | def copy(self, deep: bool = False): |
| 746 | """Make a copy of the dataframe |
| 747 | |
| 748 | This is strictly a shallow copy of the underlying computational graph. |
| 749 | It does not affect the underlying data |
| 750 | |
| 751 | Parameters |
| 752 | ---------- |
| 753 | deep : boolean, default False |
| 754 | The deep value must be `False` and it is declared as a parameter just for |
| 755 | compatibility with third-party libraries like cuDF and pandas |
| 756 | """ |
| 757 | if deep is not False: |
| 758 | raise ValueError( |
| 759 | "The `deep` value must be False. This is strictly a shallow copy " |
| 760 | "of the underlying computational graph." |
| 761 | ) |
| 762 | return new_collection(self.expr) |
| 763 | |
| 764 | @derived_from(pd.DataFrame) |
| 765 | def isin(self, values): |