numpy / numpy/numpy

ENH: csv output for recarrays

Open
#9,907 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

01 - Enhancement 15 - Discussion
Dominant language
Python
Stars
32.8k
Forks
12.8k
Avg merge
1d 7h
Merged PRs (30d)
197

Description

You can read a csv with numpy.genfromtxt to get a recarray however there appears to be no convenient method for writing a recarray back out to csv.

Contributor guide

Open the contributing guide

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 by reviewing numpy.genfromtxt and the existing NumPy interfaces for structured or record arrays and text output. Determine the intended API and supported CSV behavior before implementation; done should include a clearly defined way to write a recarray to CSV and tests covering the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.