From b1e32ca6c22afaf2a12b9dcc2b5aa1f530318a58 Mon Sep 17 00:00:00 2001 From: Devin Petersohn Date: Mon, 7 May 2018 11:56:40 -0700 Subject: [PATCH] Fixing ascii error for Python2 (#2009) --- python/ray/dataframe/dataframe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ray/dataframe/dataframe.py b/python/ray/dataframe/dataframe.py index cf32d9055f81..561111677ee8 100644 --- a/python/ray/dataframe/dataframe.py +++ b/python/ray/dataframe/dataframe.py @@ -2967,7 +2967,7 @@ def nunique(self, axis=0, dropna=True): observations over requested axis. Args: - axis : {0 or ‘index’, 1 or ‘columns’}, default 0 + axis : {0 or 'index', 1 or 'columns'}, default 0 dropna : boolean, default True Returns: @@ -3228,7 +3228,7 @@ def rank(self, axis=0, method='average', numeric_only=None, Args: axis (int): 0 or 'index' for row-wise, 1 or 'columns' for column-wise - interpolation: {‘average’, ‘min’, ‘max’, ‘first’, ‘dense’} + interpolation: {'average', 'min', 'max', 'first', 'dense'} Specifies which method to use for equal vals numeric_only (boolean) Include only float, int, boolean data. @@ -3539,7 +3539,7 @@ def sample(self, n=None, frac=None, replace=False, weights=None, Default = 1 if frac = None. frac: Fraction of axis items to return. Cannot be used with n. replace: Sample with or without replacement. Default = False. - weights: Default ‘None’ results in equal probability weighting. + weights: Default 'None' results in equal probability weighting. If passed a Series, will align with target object on index. Index values in weights not found in sampled object will be ignored and index values in sampled object not in weights will