This package has been developed using event data from the Open Data Euskadi api. Several functions have been created to facilitate users the interpretation of the data. The following variables have been used:
- Event type
- Name of the event
- Municipality
- Establishment
- Opening/Closing hours
- Price
- URL
Function | Description | Inputs |
---|---|---|
data_api | Used by other functions to obtain data from the api | Api URL |
info_events | Gets event data from an specific month in | Month, year & language (basque or spanish) |
year_data | Displays two barplots | Year and boolean value (True or False) |
download | Downloads the data | Month, year and format (csv or json) |
examples
datos_año.JPG
basque_events
basque_events.py
__init__.py
LICENSE.txt
README.md
setup.cfg
setup.py
- Pandas - Tools for manipulating different data types.
- Matplotlib - Graph creation.
- Request - Obtain requested data from the api.
- Seaborn - Easy to use data visualization.
pip install basque_events
import basque_events as be
# Event info from 2021/01
be.events_info(2021, 1, 'eus')
# Download data from 2021/05 in csv format
be.download(2021, 5, 'es', 'csv')
# Display two barplots with event data from 2021
be.year_data(2021, True)
Mikel Madariaga & Naroa Barrutia