Skip to content

Commit ffc348e

Browse files
author
Michael Erickson
committed
Added doc to drop_duplicates
1 parent 05d1d17 commit ffc348e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

swat/cas/table.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5822,6 +5822,22 @@ def drop(self, labels, axis=0, level=None, inplace=False, errors='raise'):
58225822
return out
58235823

58245824
def drop_duplicates(self, casout, subset=[]):
5825+
'''
5826+
Remove duplicate rows from a CASTable. Optionally, consider only a subset of columns
5827+
when checking for duplicate rows.
5828+
5829+
Parameters
5830+
--------
5831+
casout : string or :class:`CASTable` or dict
5832+
The output table.
5833+
subset : string or list-of-strings, optional
5834+
The subset of columns to consider when checking for duplicate rows.
5835+
5836+
Returns
5837+
--------
5838+
:class:`CASTable`
5839+
The input table without duplicate rows.
5840+
'''
58255841
self._loadactionset('deduplication')
58265842

58275843
cols = [x for x in list(self.columns)]

0 commit comments

Comments
 (0)