TheNeuralBit commented on a change in pull request #13932:
URL: https://github.com/apache/beam/pull/13932#discussion_r578866894
##########
File path: sdks/python/apache_beam/dataframe/frames.py
##########
@@ -239,6 +288,36 @@ def __getitem__(self, key):
# be more surprising than a clear error.
raise frame_base.WontImplementError('non-deferred')
+ def keys(self):
+ return self.index
+
+ @frame_base.args_to_kwargs(pd.Series)
+ @frame_base.populate_defaults(pd.Series)
+ def append(self, to_append, ignore_index, verify_integrity, **kwargs):
+ if not isinstance(to_append, DeferredSeries):
+ raise frame_base.WontImplementError(
+ "append() only accepts DeferredSeries instances, received " +
+ str(type(to_append)))
+ if ignore_index:
+ raise frame_base.WontImplementError(
+ "append(ignore_index=True) is order sensitive")
+
+ if verify_integrity:
+ # verifying output has a unique index requires global index.
+ requires = partitionings.Singleton()
Review comment:
BEAM-11839
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]