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

convert csv census tract to text in browser version #575

Open
cbach1620 opened this issue Feb 22, 2023 · 2 comments
Open

convert csv census tract to text in browser version #575

cbach1620 opened this issue Feb 22, 2023 · 2 comments

Comments

@cbach1620
Copy link

I've tried different approaches but cannot get my CSV census tract field Tractmatch to show as text so I can join with a shape file matching field, TRACTCE20 Here is what I wrote as a command at the $ prompt:

join RamseyCrimeIndex3.csv keys=TRACTCE20,Tractmatch string-fields=Tractmatch

I also tried replacing string-fields with field-types:Tractmatch:str

I get an error join keys have mismatched data types, string and number.

@mbloch
Copy link
Owner

mbloch commented Feb 22, 2023

Are you using the website (as opposed to the command line program)? If so, the problem is that you have already imported the CSV file, and the Tractmatch field was converted to numbers when the file was imported. You can enter string-fields=Tractmatch when the CSV is imported (see "Import options" in the image below). Then the join should work.
image

@cbach1620
Copy link
Author

cbach1620 commented Feb 22, 2023 via email

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

No branches or pull requests

2 participants