[
https://issues.apache.org/jira/browse/BEAM-9547?focusedWorklogId=507876&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-507876
]
ASF GitHub Bot logged work on BEAM-9547:
----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Nov/20 00:19
Start Date: 05/Nov/20 00:19
Worklog Time Spent: 10m
Work Description: robertwb commented on a change in pull request #13252:
URL: https://github.com/apache/beam/pull/13252#discussion_r517708036
##########
File path: sdks/python/apache_beam/dataframe/frame_base.py
##########
@@ -218,10 +218,20 @@ def wrapper(*args, **kwargs):
deferred_arg_indices = []
deferred_arg_exprs = []
constant_args = [None] * len(args)
+ from apache_beam.dataframe.frames import _DeferredIndex
for ix, arg in enumerate(args):
if isinstance(arg, DeferredBase):
deferred_arg_indices.append(ix)
deferred_arg_exprs.append(arg._expr)
+ elif isinstance(arg, _DeferredIndex):
+ deferred_arg_indices.append(ix)
+ deferred_arg_exprs.append(
+ expressions.ComputedExpression(
+ 'index_as_series',
+ lambda ix: ix.index.to_series(), # yapf break
+ [arg._frame._expr],
+ preserves_partition_by=partitionings.Singleton(),
+ requires_partition_by=partitionings.Nothing()))
Review comment:
Perhaps. Currently, however, the infrastructure requires anything
partition-able to have an index, which indices don't have, so that wouldn't
work. I'll drop a TODO.
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 507876)
Time Spent: 33h 10m (was: 33h)
> Implement all pandas operations (or raise WontImplementError)
> -------------------------------------------------------------
>
> Key: BEAM-9547
> URL: https://issues.apache.org/jira/browse/BEAM-9547
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Brian Hulette
> Assignee: Robert Bradshaw
> Priority: P2
> Time Spent: 33h 10m
> Remaining Estimate: 0h
>
> We should have an implementation for every DataFrame, Series, and GroupBy
> method. Everything that's not actually implemented should get a default
> implementation that raises WontImplementError
> SeeĀ https://github.com/apache/beam/pull/10757#discussion_r389132292
> Progress at the individual operation level is tracked in a
> [spreadsheet|https://docs.google.com/spreadsheets/d/1hHAaJ0n0k2tw465ORs5tfdy4Lg0DnGWIQ53cLjAhel0/edit],
> consider requesting edit access if you'd like to help out.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)