Skip to content

support empty space separator #1489

@jkone27

Description

@jkone27

some files like this one cannot be parsed by csv provider, as it uses empty space

https://www.ncei.noaa.gov/data/noaa-global-surface-temperature/v5/access/timeseries/aravg.ann.land_ocean.00N.30N.v5.0.0.202212.asc

ok was able to compile like this

type NoaDataProvider = CsvProvider<
    "https://www.ncei.noaa.gov/data/noaa-global-surface-temperature/v5/access/timeseries/aravg.ann.ocean.00N.30N.v5.0.0.202212.asc",
    "   ", IgnoreErrors=true>

but when i run in ionide i get

/Users/admin/Repositories/scripts/plotlyTest.fsx(8,46): error FS1156: This is not a valid numeric literal. Valid numeric literals include 1, 0x1, 0o1, 0b1, 1l (int/int32), 1u (uint/uint32), 1L (int64), 1UL (uint64), 1s (int16), 1us (uint16), 1y (int8/sbyte), 1uy (uint8/byte), 1.0 (float/double), 1.0f (float32/single), 1.0m (decimal), 1I (bigint).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions