Python-Package opendataformat

— The Python package is still under development —

The opendataformat package is specifically designed to facilitate the seamless utilization of the Open Data Format (ODF) in Python. 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 will have access to a practical example of real data in the Open Data Format.


Installation

You can download and install the development version of the opendataformat package directly from GitHub using the CMD command pip install in the Command Prompt.

pip install git+https://github.com/opendataformat/python-package-opendataformat.git


Getting started

To use the opendataformat package you have to import the library in python.

import opendataformat as odf

The opendataformat package consists of five main functions:

For more information visit the python package documentation.


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 an issue with a minimal reproducible example on GitHub.