[
https://issues.apache.org/jira/browse/BEAM-12945?focusedWorklogId=655022&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-655022
]
ASF GitHub Bot logged work on BEAM-12945:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Sep/21 16:32
Start Date: 24/Sep/21 16:32
Worklog Time Spent: 10m
Work Description: TheNeuralBit commented on pull request #15573:
URL: https://github.com/apache/beam/pull/15573#issuecomment-926766432
R: @ibzib
CC: @robertwb
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 655022)
Time Spent: 40m (was: 0.5h)
> DataFrame API fails to import with pandas 1.0.x
> -----------------------------------------------
>
> Key: BEAM-12945
> URL: https://issues.apache.org/jira/browse/BEAM-12945
> Project: Beam
> Issue Type: Bug
> Components: dsl-dataframe
> Affects Versions: 2.32.0
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: P2
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The DataFrame API expects pandas.DataFrame to have the attributes "backfill",
> "bfill", so it fails to import when pandas 1.0.x is installed:
> {code}
> In [1]: import pandas as pd
>
> [11/1919]
>
>
> In [2]: pd.__version__
> Out[2]: '1.0.5'
>
>
> In [3]: from apache_beam.dataframe.convert import to_dataframe
>
> ---------------------------------------------------------------------------
>
> AttributeError Traceback (most recent call last)
>
> <ipython-input-3-26ab6682f699> in <module>
> ----> 1 from apache_beam.dataframe.convert import to_dataframe
>
>
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/convert.py in <module>
>
> 30 from apache_beam.dataframe import frame_base
> 31 from apache_beam.dataframe import schemas
> ---> 32 from apache_beam.dataframe import transforms
> 33
> 34 if TYPE_CHECKING:
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/transforms.py in
> <module>
> 30 from apache_beam import transforms
> 31 from apache_beam.dataframe import expressions
> ---> 32 from apache_beam.dataframe import frames # pylint:
> disable=unused-import
> 33 from apache_beam.dataframe import partitionings
> 34 from apache_beam.utils import windowed_value
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/frames.py in <module>
>
> 148
> 149
> --> 150 class DeferredDataFrameOrSeries(frame_base.DeferredFrame):
>
> 151 def _render_indexes(self):
> 152 if self.index.nlevels == 1:
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/frames.py in
> DeferredDataFrameOrSeries()
> 297 ffill = _fillna_alias('ffill')
> 298 bfill = _fillna_alias('bfill')
> --> 299 backfill = _fillna_alias('backfill')
> 300 pad = _fillna_alias('pad')
> 301
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/frames.py in
> _fillna_alias(method)
> 94 return frame_base.with_docs_from(pd.DataFrame)(
>
> 95 frame_base.args_to_kwargs(pd.DataFrame)(
> ---> 96 frame_base.populate_defaults(pd.DataFrame)(wrapper)))
>
> 97
> 98
> ~/working_dir/beam/sdks/python/apache_beam/dataframe/frame_base.py in
> wrap(func)
> 559 For internal use only. No backwards compatibility guarantees."""
>
> 560 def wrap(func):
> --> 561 base_argspec = getfullargspec(unwrap(getattr(base_type,
> func.__name__)))
> 562 if not base_argspec.defaults:
> 563 return func
> AttributeError: type object 'DataFrame' has no attribute 'backfill'
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)