-
Notifications
You must be signed in to change notification settings - Fork 607
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
csvcut issue with Python 3 #302
Labels
Comments
Can provide the problem CSV? Or if not, can you make a simple one that demonstrates the problem? |
Replicated:
|
Traceback from csvsort:
|
lcorbasson
pushed a commit
to lcorbasson/csvkit
that referenced
this issue
Sep 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Was going through the "Examining Data" section of the tutorial. The section "2.5. Sorting with csvsort" command "" works with Python 2, but not with Python 3. From my terminal:
************* Python 2 **************
charlies-MacBook-Air:va_benefits charlie$ csvcut -c 9,1 2009.csv | csvsort -r | head -n 5
TOTAL,State Name
,
46897,CALIFORNIA
40402,TEXAS
36394,FLORIDA
charlies-MacBook-Air:va_benefits charlie$ python --version
Python 2.7.6 :: Anaconda 2.0.0 (x86_64)
************* Python 3 **************
(py3k)charlies-MacBook-Air:va_benefits charlie$ csvcut -c 9,1 2009.csv | csvsort -r | head -n 5
unorderable types: int() < str()
(py3k)charlies-MacBook-Air:va_benefits charlie$ python --version
Python 3.3.5 :: Anaconda 2.0.0 (x86_64)
I've not had a chance to troubleshoot a whole lot...figured I'd toss this one out there and see if this is a known problem or not. Column 9 in this data set is mostly quoted values with embedded commas (e.g. ...,"45,456",...).
charlie
The text was updated successfully, but these errors were encountered: