yeandy commented on a change in pull request #16590:
URL: https://github.com/apache/beam/pull/16590#discussion_r791776356



##########
File path: sdks/python/apache_beam/dataframe/frames.py
##########
@@ -638,10 +638,13 @@ def replace(self, to_replace, value, limit, method, 
**kwargs):
     order-sensitive. It cannot be specified.
 
     If ``limit`` is specified this operation is not parallelizable."""
+    from pandas._libs import lib
     if method is not None and not isinstance(to_replace,
-                                             dict) and value is None:
+                                             dict) and value is lib.no_default:

Review comment:
       Looks like after reading the 
[documentation](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.replace.html),
 if `None` is explicitly passed, we don't do the order-sensitive padding. 
Please confirm my understanding




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to