Skip to content

Commit

Permalink
Merge pull request #49 from intake/chuyuanliu/vectorize-concatenation…
Browse files Browse the repository at this point in the history
…-in-pandas

fix: avoid probable to_list/from_iter in pandas.concat
  • Loading branch information
martindurant committed Mar 10, 2024
2 parents d0f7893 + 2779db0 commit f8bfbf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/awkward_pandas/__init__.py
@@ -1,6 +1,6 @@
from __future__ import annotations

import awkward_pandas.accessor # noqa
import awkward_pandas.accessor
import awkward_pandas.dask_connect # noqa
from awkward_pandas.array import AwkwardExtensionArray
from awkward_pandas.dtype import AwkwardDtype
Expand Down
2 changes: 1 addition & 1 deletion src/awkward_pandas/array.py
Expand Up @@ -129,7 +129,7 @@ def copy(self):

@classmethod
def _concat_same_type(cls, to_concat):
return cls(ak.concatenate(to_concat))
return cls(ak.concatenate([a._data for a in to_concat]))

@property
def ndim(self) -> Literal[1]:
Expand Down

0 comments on commit f8bfbf3

Please sign in to comment.