Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
example.py 322 B
Newer Older
Thomas Vliagkoftis's avatar
Thomas Vliagkoftis committed
#!/usr/bin/env python3
Thomas Vliagkoftis's avatar
Thomas Vliagkoftis committed

Thomas Vliagkoftis's avatar
Thomas Vliagkoftis committed
from src.uds4jrc.config import Config
from src.uds4jrc.db import eea_raw_data
from src.uds4jrc.utils import save_to_parquet
Thomas Vliagkoftis's avatar
Thomas Vliagkoftis committed
df = pd.DataFrame.from_records(eea_raw_data.find({}, {'_id': 0}).limit(10))
Thomas Vliagkoftis's avatar
Thomas Vliagkoftis committed

...  # process your data

save_to_parquet(df, Config.UEOS, 'test.parquet')