News for hackers. Stuff that matters.
Re:Any tools can generate datatype from string? by hackarama on Wednesday November 02, 2022 @08:41AM (#33434765)
Python's pandas library essentially does this when creating a DataFrame object from a CSV file. Of course, it's not always correct, but may be a starting point for your use case.
Re:Any tools can generate datatype from string? by dsmmcken on Wednesday November 02, 2022 @09:53AM (#33435763)
pandas is good if you are in python.

If you happen to be looking for something in java, you can try: https://github.com/deephaven/deephaven-csv

Benchmarks, along with other java alternatives discussed here: https://deephaven.io/blog/2022/02/23/csv-reader/

Re:Any tools can generate datatype from string? by LucianSpec on Wednesday November 02, 2022 @10:53PM (#33446381)
i used pandas, type guess isn't nice. especially on some string or time types. also extend pandas types is hard, pandas's design is more like a numerical computation tool.