right out of the box mljar pipeline.
Project description
SchemArrow
SchemArrow
simplifies the conversion between pandas and Arrow DataFrames, allowing you to seamlessly switch back and forth.
Get started:
Get started:
Installation
To install the package use pip:
pip install schemarrow
Usage
import pandas as pd
from schemarrow import SchemArrow
# Create a pandas DataFrame
df = pd.DataFrame({
'A': [1, 2, 3],
'B': ['a', 'b', 'c'],
'C': [1.1, 2.2, 3.3],
'D': [True, False, True]
})
# Instantiate a SchemArrow object
arrow_schema = SchemArrow()
# Convert the pandas DataFrame dtypes to arrow dtypes
df_pa: pd.DataFrame = arrow_schema(df)
print(df_pa.dtypes)
outputs:
A int64[pyarrow]
B string[pyarrow]
C double[pyarrow]
D bool[pyarrow]
dtype: object
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
schemarrow-0.1.0a0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for schemarrow-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d8a67214db25051d419811aafb19da6306cf30b2e9b83b5e6fae6cc126f868 |
|
MD5 | 1a4a6eb6637fd9329dee695f59376fee |
|
BLAKE2b-256 | 585a57d83b503bdc58fb21b8b4edbd6bd3d81c72aba6ac833ae9b37ff0da1a9d |