/RePEc-Python-Scripts

Python scripts to work with data in ReDIF format

Primary LanguageJupyter Notebook

RePEc-Python-Scripts

Python scripts to work with data in ReDIF format

(see here for related scripts https://ideas.repec.org/s/rpc/script.html)

Requirements

  1. Python 2.7: https://www.python.org/download/releases/2.7/ (pre-installed on on most Mac OS and Linux versions)
  2. git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git (optional)

Download

  • Download the repository in a zip format and unzip it on your computer

Or

Preperation

Put your ReDIF file(s) in your local RePEc-Python-Scripts directory

Convert ReDIF to JSON-LD (http://json-ld.org/)

In a Command Line Terminal type

  • python redif2jsonld.py

Convert ReDIF to CSV

Requirement

  1. pandas (http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html)

In a Command Line Terminal type

  • python redif2csv.py

Examples

Notebook for JSON-LD: https://github.com/moqri/RePEc-Python-Scripts/blob/master/redif2jsonld.ipynb

Notebook for CSV: https://github.com/moqri/RePEc-Python-Scripts/blob/master/redif2csv.ipynb