stan-dev / stan-dev/pystan

Add support for Arrow tables

Open
#412 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
366
Forks
61
PR merge metrics
No merged PRs in 30d

Description

This is more a feature request than a bug. Sorry if this is not the right channel.

Describe the bug

I would like to convert fit objects directly to PyArrow tables, without constructing an intermediate Pandas dataframe. I have a working implementation.

Describe your system

Linux archlinux 6.16.7-arch1-1
x86-64
g++ (GCC) 15.2.1 20250813
mamba 1.5.8
conda 24.3.0

Steps/Code to Reproduce
Code Sample, a copy-pastable example
fit.to_arrow()

It's not currently implemented, should return a PyArrow Table. I have an implementation with working tests.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the fit.to_arrow() entry point described in the issue and inspect how fit objects are currently converted through Pandas. Review the reporter's existing implementation and working tests if available; done means fit.to_arrow() returns a PyArrow Table without constructing an intermediate Pandas dataframe.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.