Skip to content

Commit efbd05a

Browse files
authored
Merge pull request #795 from sfu-db/refactor/optimize-pd-reconstruction
refactor: Optimize DataFrame Reconstruction & Update Docs for Linux ARM64 Release fix #786
2 parents c0aa6b9 + e37a96a commit efbd05a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Check out more detailed usage and examples [here](https://sfu-db.github.io/conne
4848
pip install connectorx
4949
```
5050

51+
_For AArch64 or ARM64 Linux users, `connectorx==0.4.3 & above` is only available for distributions using `glibc 2.35` and above. Specifically, the re-release for this architecture was tested on Ubuntu 22.04. For older distributions, the latest version available is `connectorx==0.2.3` due to dependency limitations._
52+
5153
Check out [here](https://sfu-db.github.io/connector-x/install.html#build-from-source-code) to see how to build python wheel from source.
5254

5355
# Performance

connectorx-python/connectorx/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def reconstruct_pandas(df_infos: _DataframeInfos) -> pd.DataFrame:
475475
elif binfo.dt == 3: # DatetimeArray
476476
blocks.append(
477477
pd.core.internals.make_block(
478-
pd.core.arrays.DatetimeArray(block_data), placement=binfo.cids
478+
pd.core.arrays.DatetimeArray._from_sequence(block_data), placement=binfo.cids
479479
)
480480
)
481481
else:
@@ -484,7 +484,7 @@ def reconstruct_pandas(df_infos: _DataframeInfos) -> pd.DataFrame:
484484
block_manager = pd.core.internals.BlockManager(
485485
blocks, [pd.Index(headers), pd.RangeIndex(start=0, stop=nrows, step=1)]
486486
)
487-
df = pd.DataFrame(block_manager)
487+
df = pd.DataFrame._from_mgr(block_manager, axes=[headers, range(nrows)])
488488
return df
489489

490490

docs/install.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The easiest way to install ConnectorX is using pip, with the following command:
1010
pip install connectorx
1111
```
1212

13+
```{note}
14+
For AArch64 or ARM64 Linux users, `connectorx==0.4.3 & above` is only available for distributions using `glibc 2.35` and above. Specifically, the re-release for this architecture was tested on Ubuntu 22.04. For older distributions, the latest version available is `connectorx==0.2.3` due to dependency limitations.
15+
```
16+
1317
### Build from source code
1418

1519
* Step 0: Install tools.

0 commit comments

Comments
 (0)