CSV.jl

Utility library for working with CSV and other delimited files in the Julia programming language
Popularity
405 Stars
Updated Last
11 Months Ago
Started In
May 2015

CSV

CI codecov deps version pkgeval

A fast, flexible delimited file reader/writer for Julia.

Installation

The package is registered in the General registry and so can be installed at the REPL with ] add CSV.

Documentation

  • STABLEmost recently tagged version of the documentation.
  • LATESTin-development version of the documentation.

Project Status

The package is tested against Julia 1.0, current stable release, and nightly on Linux, OS X, and Windows.

Contributing and Questions

Contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems or would just like to ask a question.

Alternatives

There are several other packages for reading CSV files in Julia, which may suit your needs better:

  • The standard library contains DelimitedFiles.jl, at least until Julia 1.8. This returns a Matrix rather than a Tables.jl-style container, thus works best for files of homogeneous element type. On large files, CSV.jl will be much faster.

  • CSVFiles.jl uses the FileIO.jl's load / save API, but otherwise has similar goals. Like CSV.jl, it works with Tables.jl objects such as DataFrames.

  • DLMReader.jl also aims to be fast for large files, closely associated with InMemoryDatasets.jl.

  • Pandas.jl wraps Python's pandas library (using PyCall.jl). This is a closer cousin of DataFrames.jl, but builds in the ability to read/write CSV files.