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