-
Notifications
You must be signed in to change notification settings - Fork 133
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
Datalib is inferring my string as a number #95
Comments
Thanks for the bug report. When I attempt to reproduce, I find that the type inference methods are inferring the Strangely enough, the browser's built-in new Date(Date.parse('Restaurant 11057'))
// Thu Jan 01 11057 00:00:00 GMT-0800 (PST) Fixing this will likely require significant changes to how Date inference is performed (as we currently leverage the results from |
@jheer: we could easily fix this by using Moment.js. Here is a very simple example: http://jsfiddle.net/zcvxsbo2/2/. We could also see if a more modern and small library like date-fns or d3-time-format (which is already included), would work. This would also make the date parser more robust, consistent, and able to support more formats. I can provide a patch if you'd like 😄 |
Hi! I just wanted to see if there had been any changes to Date inference since this discussion. In Lyra, we've been loading datasets from |
Given the following TSV file, datalib is inferring the
name
column to be a number.Example TSV:
Datalib call:
The text was updated successfully, but these errors were encountered: