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

Fornye droplistekoden #75

Merged
merged 8 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"template": "https://github.com/statisticsnorway/ssb-project-template-stat",
"commit": "d812a9210647a93d2cda82086fe0f036f0d07214",
"checkout": "1.0.1",
"context": {
"cookiecutter": {
"full_name": "Magne F. Myhren",
"email": "[email protected]",
"project_name": "spesh",
"description": "",
"license_year": "2023",
"_template": "https://github.com/statisticsnorway/ssb-project-template-stat"
}
},
"directory": null
}
103 changes: 81 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# Data types
*.parquet
*.feather
# This .gitignore file is based on SSB's recommended gitignore template stored
# in: https://github.com/statisticsnorway/kvakk-git-tools
# It contains three sections: SSB specific ignores, GitHub's Python-ignore
# template and GitHub's R-ignore template.


# The section below contains SSB specific ignores, not included in the Python-
# and R-ignores from GitHub.
*.csv
*.log
*.tmp
*.db
*.feather
*.parquet
*.sas7bdat
*.jpeg
*.dat
*.txt
*.xls
*.xlsx
*.zip
*.tsv
*.dat

# Notebook ceckpoints
.ipynb_checkpoints
# The section below is from the GitHub .gitignore template for Python:
# https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore

# Byte-compiled / optimized / DLL files
__pycache__/
Expand All @@ -36,12 +42,12 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.poetry/cache/

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -66,6 +72,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -88,6 +95,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -97,17 +105,13 @@ target/
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# pdm
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
Expand Down Expand Up @@ -143,4 +147,59 @@ dmypy.json

# Pyre type checker
.pyre/
.Rproj.user

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# The section below is from the GitHub .gitignore template for R:
# https://raw.githubusercontent.com/github/gitignore/main/R.gitignore

# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# translation temp files
po/*~

# RStudio Connect folder
rsconnect/
3 changes: 3 additions & 0 deletions Droplister/Brukerlister.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def lag_sql_str(arr):
PHOB.sample(3)
# -

# DIAKONHJEMMET SKAL HA 0X istedenfor 39
PHOB.loc[PHOB['ORGNR_FORETAK'] == "982791952", 'SKJEMA_TYPE'] = "0X 381 441 451 461 47 48"

# ## Slå sammen til en dataframe som eksporteres til `.csv`

# +
Expand Down
Loading