Skip to content

csvcat: concatenate CSVs with the same shape #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Notgnoshi opened this issue May 4, 2025 · 0 comments
Open

csvcat: concatenate CSVs with the same shape #37

Notgnoshi opened this issue May 4, 2025 · 0 comments
Labels
gizmo An idea for a new gizmo

Comments

@Notgnoshi
Copy link
Owner

  • Must have the same number of columns
    • With special handling for the index column
  • Data will be untransformed
  • CSVs will be concatenated in the order of CLI arguments
  • Option to add an --index-name column that enumerates which CSV the data came from
    • Option: CSV filename
    • Option: 0-based index
    • Option: 1-based index
    • Option: UUID

Example 1 - concatenate 2 CSVs

file 1:

v1 v2
0.5 a
-2 b

file 2:

v1 v2
0.1 c
5 d

output:

index v1 v2
0 0.5 a
0 -2 b
1 0.1 c
2 5 d

Example 2 - concatenate another CSV to an existing series

file 1:

index v1 v2
0 0.5 a
1 -2 b
2 -0.1 c

file 2:

v1 v2
0.1 c
5 d

output:

index v1 v2
0 0.5 a
1 -2 b
2 -0.1 c
3 0.1 c
3 5 d
@Notgnoshi Notgnoshi added the gizmo An idea for a new gizmo label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gizmo An idea for a new gizmo
Projects
None yet
Development

No branches or pull requests

1 participant