JuliaData / JuliaData/CSV.jl

Allow `Any` type in column

Open
#1,027 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new feature
Dominant language
Julia
Stars
506
Forks
150
Avg merge
4d 16h
Merged PRs (30d)
7

Description

Related to user's problem report https://discourse.julialang.org/t/help-with-appending-row-in-read-in-dataframe-weird-behavior/87734.

When you write:

julia> df2 = CSV.read("test.csv", DataFrame, types=Any)
ERROR: ArgumentError: Non-concrete types passed in `types` keyword argument, please provide concrete types for columns: Any

you get an error. What can the user do to allow a flexible eltype for column read-in, like Any or e.g. Real?

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 at the CSV.read entry point and reproduce the shown call with types=Any from the issue. Determine how flexible column eltypes such as Any or Real should be accepted, then verify that reading the example CSV no longer raises the reported non-concrete-types error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.