Skip to main content

right out of the box mljar pipeline.

Project description

SchemArrow

PyPI version PyPI - Downloads Tests Code Checks License PyPI - Python Version OS OS OS

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


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)

Uploaded Source

Built Distribution

schemarrow-0.1.0a0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page