Skip to content

Instantly share code, notes, and snippets.

@maolagin
maolagin / example.py
Last active February 23, 2021 17:38
EDDB factions Python example
# First download the daily data dump files from EDDB, e.g. with the following commands:
# curl --compressed -o systems_populated.json 'https://eddb.io/archive/v6/systems_populated.json'
# curl --compressed -o factions.csv 'https://eddb.io/archive/v6/factions.csv'
import pandas as pd
import numpy as np
import json
import csv
# Note string dtypes select Pandas nullable types