Skip to content

How can I parse a multi-value column in a csv? #418

Answered by reguzik
reguzik asked this question in FAQs
Discussion options

You must be logged in to vote

On FMNH Collections pages and other search-sites for collections data, you can often download search results as a csv. However, data that was formatted in multi-value tables in EMu are often concatenated into a single column in the web-accessible csv, with values separated by pipe symbols: |

To re-separate or parse a multi-valued field:

  1. Open the csv in Excel or LibreOffice, and first check through the column of headings--e.g., "Measurement"
    If headings are the same throughout, go to step 2.
    If they vary between records, though, sort your data by the multi-headings column, and move data sub-sets with different headings into separate sheets. Then go to step 2.

  2. If the column containing m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fmjjones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
reports This issue relates to reports fmnh website
1 participant