Skip to content
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

csvstat: Add support for --no-inference #965

Closed
jpmckinney opened this issue Jun 13, 2018 · 1 comment
Closed

csvstat: Add support for --no-inference #965

jpmckinney opened this issue Jun 13, 2018 · 1 comment

Comments

@jpmckinney
Copy link
Member

Use case:

I have strings of the form "1-1-19" and "1-1-20". I want e.g. counts of those as unique strings. They are interpreted as dates which adds massive confusion. I'd love to have both implicit inference for numbers, and no fancy guessing of "implicit dates" since the latter is so wide-ranging and convoluted in the international public mind.

From #935 (comment)

@jpmckinney
Copy link
Member Author

jpmckinney commented Oct 17, 2023

Fixed!

Previously, to reproduce:

$ printf "a\n1-1-19\n1-1-20" | csvstat
  1. "a"

	Type of data:          Date
	Contains null values:  False
	Non-null values:       2
	Unique values:         2
	Smallest value:        2019-01-01
	Largest value:         2020-01-01
	Most common values:    2019-01-01 (1x)
	                       2020-01-01 (1x)

Row count: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant