The Norwegian Business Register with Pyscript and Pandas #1609
sskagemo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a page with pyscript.com that loads the Norwegian Business Register (actually it is a register that includes the Business Register as well as a set of other register of legal entities) into a Pandas Dataframe, and lets the user explore and analyze the register with Pandas.
https://aaa95cd8-38ea-429f-8399-087a472f9e7d.pyscriptapps.com/7b00bb5a-bc81-4ccb-b16b-b169aef6d39f/latest/
The page is in Norwegian, and is meant for beginners/people who do not know Pandas (or Python), just to give them an idea of what the benefits of using Python/Pandas if they are regularly doing tasks related to the data from the registry. The main alternative for non-programmers is to download the file as Excel.
The page has some code to download the resulting dataframe (if stored in 'resultat') as a CSV-file, which I made with the help of John Hanleys pages about local files: https://www.jhanley.com/blog/pyscript-files-and-file-systems-part-2/
If I get the knowledge, I believe it would be a good idea to make an extension/plugin for such a functionality, 'download the result'. What do you think?
Also, since the user is invited to write their own code, I should probably make it easy to download the code written by the user, so they don't loose it as soon as they close or refresh the page. Maybe that is something you have already looked into?
Beta Was this translation helpful? Give feedback.
All reactions