Skip to content

Commit

Permalink
Remove internal series.append call from frames.py (#28499)
Browse files Browse the repository at this point in the history
  • Loading branch information
caneff authored Sep 18, 2023
1 parent 6d7c699 commit 8871a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdks/python/apache_beam/dataframe/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,10 @@ def compute_idx(s):
index = pd.Index([], dtype=index_dtype)
proxy = self._expr.proxy().copy()
proxy.index = index
proxy = proxy.append(
pd.Series([1], index=np.asarray(['0']).astype(proxy.index.dtype)))
proxy = pd.concat([
proxy,
pd.Series([1], index=np.asarray(['0']).astype(proxy.index.dtype))
])

idx_func = expressions.ComputedExpression(
'idx_func',
Expand Down

0 comments on commit 8871a4e

Please sign in to comment.