Skip to main content

The Open Data Format (ODF) is a new, non-proprietary, multilingual, metadata enriched, and zip-compressed data format with metadata structured in the Data Documentation Initiative (DDI) Codebook standard. This package allows reading and writing of data files in the Open Data Format (ODF) in R, and displaying metadata in different languages. For further information on the Open Data Format, see <https://opendataformat.github.io/>.

Project description

opendataformat

Overview

The opendataformat package is specifically designed to facilitate the seamless utilization of the Open Data Format (ODF). It offers functionality to import data from the Open Data Format into a Python pandas data frame, as well as export data from a Pandas data frame to the Open Data Format. You can easily access comprehensive information about the dataset and variables in Python. This user-friendly approach ensures convenient exploration and utilization of dataset information within your preferred environment.

For more comprehensive insights into the Open Data Format specification, please visit: Open Data Format Specification. This resource provides detailed documentation and profiles illustrating the storage locations of attributes within the Open Data Format, as well as within the native formats to which they will be converted. Additionally, you can download a practical example of real data in the Open Data Format.

Getting started

import opendataformat as odf

The opendataformat package consists of five main functions:

  • odf.read_odf() to read an Open Data Format file in Pandas. This function takes an input parameter "path", which is the path to the Open Data Format ZIP file.

  • odf.docu_odf() to display or retrieve metadata for a ODF data frame or a variable / column.

  • odf.write_odf() to write the Pandas Dataframe to an Open Data Format ZIP file. By specifying the dataframe input and providing the output directory path the function will generate a ZIP file containing the dataset as "data.csv" and "metadata.xml".

Multilingual Datasets

When working with a multilingual dataset, the opendataformat package provides the option to specify the language you want to work with for the main functions: read_odf(), docu_odf(), and write_odf().

You can achieve this by using the languages argument and setting it to either all to include all languages, or by specifying the language code such as de for German or en for English. This allows you to easily select the desired language for your dataset operations. The language codes are defined by the ISO 639-1.

Getting help

If you encounter a clear bug, please file a minimal reproducible example on https://github.com/thartl-diw/py-package-opendataformat/issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opendataformat-1.0.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opendataformat-1.0.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file opendataformat-1.0.0.tar.gz.

File metadata

  • Download URL: opendataformat-1.0.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for opendataformat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 292cc6402e606da65c6818a490ca8d1821e368803ecd4e86b7fb368b5e6931a6
MD5 99be4b262d5dd65d22bb7623b1965173
BLAKE2b-256 5c0607ef3492716a7c0c9c29b3c30ca44acc8f91c7275282c2b3a2f89321d692

See more details on using hashes here.

File details

Details for the file opendataformat-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: opendataformat-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for opendataformat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8aa3eb84360b2566da75ed173fe10bbb36d549463f061bf2950334ea5525a9
MD5 1e1d0990101abcba76168eddfae6023d
BLAKE2b-256 65b2a6e656837b24bba5b6cf6a80cf4041aad285e63fea4675b5e6a9c4c07fb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page