Git Product home page Git Product logo

Comments (4)

edwindj avatar edwindj commented on May 10, 2024

You are correct: these are the column names I receive from the CBS.
The human readable names of the columns are in meta$DataProperties

the recode argument currently recodes category codes into category names. It is on my TODO list that recode also returns "human readable" column names. Note however that these label can be looooonggg.

from cbsodatar.

J535D165 avatar J535D165 commented on May 10, 2024

Hello Edwin, thanks for your updates on this point. I like the use_column_title argument. Dropping the numbers after the underscore may be a solution as well. I haven't found a situation with duplicate column names when dropping the numbers. I'm not sure what happens when there are duplicate column names.

A few weeks ago, I made a CBS open data client for Python inspired on this project. Linking back to your R version. https://github.com/J535D165/cbsodata

from cbsodatar.

edwindj avatar edwindj commented on May 10, 2024

Hi Jonathan,

Thanks for your suggestions! Regarding dropping the numbers: most of the times this is not a problem, however:

  • the column name should also be findable in the metadata section (Dataproperties to be exact), so that introduces an inconstency
  • there are (or were) Open Data tables which repeated identical columns. This was mainly done for presentation purposes. These columns tend to have identical keys except for the number...

I noticed (by accident) your python implementation. I was looking at "rijksdriehoek" of Jan van der Laan (who is a close colleague), and noticed your python implementation and there upon your python implementation of cbsodata :-) . I will add a link to README to reference your python version.

Best regards,

Edwin

from cbsodatar.

J535D165 avatar J535D165 commented on May 10, 2024

Clear answer. I'm a bit afraid that the numbers will change over the time (different column order?). But it's good to leave it to the end user. And the use_column_title is enough for most users.

In my opinion, the issue can be closed.

from cbsodatar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.