Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

xsv table displays incorrectly #151

Open
@llimllib

Description

@llimllib

Given data of very regular format, xsv table has a phase change that is irregular. I've reduced it to a test csv where it happens around line 575:

$ (head -n2; tail) < test.csv
contract_id,plan_id,segment_id,pharmacy_number,price_id,brand_dispensing_fee_30,generic_dispensing_fee_30
abcde,001,000,123456789012,160,123456789012,000000012500
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000
abcde,019,000,123456789012,107,123456789012,000000006000

$ (head -n2; tail) < <(xsv table test.csv)
contract_id  plan_id  segment_id  pharmacy_number  price_id  brand_dispensing_fee_30  generic_dispensing_fee_30
abcde        001      000         123456789012     160       123456789012             000000012500
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde        019      000         123456789012     107       123456789012             000000006000
abcde   019  000  123456789012  107  123456789012  000000006000
abcde  019  000  123456789012  107  123456789012  000000006000
abcde  019  000  123456789012  107  123456789012  000000006000

The test file is available here: https://gist.githubusercontent.com/llimllib/91576d1fdbb1a0564932924af9313894/raw/3e716a3cd8aadd141a93e7683a5626876f5b548b/test.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions