{"id":18733471,"url":"https://github.com/queryverse/datatables.jl","last_synced_at":"2025-10-04T11:05:03.368Z","repository":{"id":61797692,"uuid":"221050350","full_name":"queryverse/DataTables.jl","owner":"queryverse","description":"A simple read-only table type for the Queryverse","archived":false,"fork":false,"pushed_at":"2020-08-22T16:53:29.000Z","size":204,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T17:51:51.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/queryverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T19:04:56.000Z","updated_at":"2022-11-13T20:38:37.000Z","dependencies_parsed_at":"2022-10-21T11:15:20.152Z","dependency_job_id":null,"html_url":"https://github.com/queryverse/DataTables.jl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queryverse%2FDataTables.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queryverse%2FDataTables.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queryverse%2FDataTables.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queryverse%2FDataTables.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queryverse","download_url":"https://codeload.github.com/queryverse/DataTables.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605124,"owners_count":19666998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:09:52.641Z","updated_at":"2025-10-04T11:05:03.279Z","avatar_url":"https://github.com/queryverse.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataTables.jl\n\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n[![Build Status](https://travis-ci.com/queryverse/DataTables.jl.svg?branch=master)](https://travis-ci.com/queryverse/DataTables.jl)\n[![codecov](https://codecov.io/gh/queryverse/DataTables.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/queryverse/DataTables.jl)\n\n## Overview\n\nA simple read-only table type for the [Queryverse](https://github.com/queryverse).\n\n## Installation\n\nYou can install the package at the Pkg REPL-mode with:\n\n```julia\npkg\u003e add DataTables\n```\n\n## Getting started\n\nThe main type in this package is `DataTable`, a data structure for tabular data. To create a new `DataTable` with a number of columns, just pass the columns as keyword arguments to the `DataTable` constructor:\n\n```julia\njulia\u003e dt = DataTable(Name=[\"John\", \"Sally\", \"Jim\"], Age=[23., 43., 56.], Children=[2, 0, 3])\n3x3 DataTable\nName  │ Age  │ Children\n──────┼──────┼─────────\nJohn  │ 23.0 │ 2\nSally │ 43.0 │ 0\nJim   │ 56.0 │ 3\n```\n\nTo access an individual column by name, use the `.` dot syntax:\n\n```julia\njulia\u003e dt.Age\n3-element ReadOnlyArrays.ReadOnlyArray{Float64,1,Array{Float64,1}}:\n 23.0\n 43.0\n 56.0\n```\n\nTo access an individual row, use the normal julia index syntax:\n\n```julia\njulia\u003e dt[2]\n(Name = \"Sally\", Age = 43.0, Children = 0)\n```\n\nIf you want to access the value in an individual cell, it is generally more efficient to first access the column via the dot syntax, and then select the value for a given row via indexing:\n\n```julia\njulia\u003e dt.Name[2]\n\"Sally\"\n```\n\nYou can also create a new `DataTable` by passing any object to its constructor that implements the [TableTraits.jl](https://github.com/queryverse/TableTraits.jl) interface. That includes everything in the [Queryverse](https://www.queryverse.org/), but also many other table types like [DataFrames.jl](https://github.com/JuliaData/DataFrames.jl), [IndexedTables.jl](https://github.com/JuliaComputing/IndexedTables.jl) etc. Every `DataTable` also implements the [TableTraits.jl](https://github.com/queryverse/TableTraits.jl) interface and can therefore be passed to any function that accepts a [TableTraits.jl](https://github.com/queryverse/TableTraits.jl) value.\n\n## Alternatives\n\nDataTables.jl is not the only julia initiative for tabular data, there are many other packages that have similar goals. Take a look at [DataFrames.jl](https://github.com/JuliaData/DataFrames.jl), [IndexedTables.jl](https://github.com/JuliaComputing/IndexedTables.jl) and [TypedTables.jl](https://github.com/JuliaData/TypedTables.jl) (which in particular was a major inspiration for this package here). If I missed other packages, please let me know and I'll add them to this list!\n\n## Getting help\n\nPlease ask any usage question in the [Data Domain](https://discourse.julialang.org/c/domain/data) on the [julia Discourse forum](https://discourse.julialang.org/). If you find a bug or have an improvement suggestion for this package, please open an issue in this github repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueryverse%2Fdatatables.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueryverse%2Fdatatables.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueryverse%2Fdatatables.jl/lists"}