time-link / timelink-py

Timelink Python Package
MIT License
3 stars 0 forks source link

Allow multiple attribute types in attribute_values #42

Open joaquimrcarvalho opened 7 months ago

joaquimrcarvalho commented 7 months ago

Description

Currently the function attribute_values only allows a single attribute type to be passed in. This PR allows multiple attribute types to be passed in.

Motivation and Context

This PR is needed to allow the attribute_values function to be used with list of attributes types that share a type of value. For instance analysing the attributes of missionaries to China the attribute types: "departure", "stay", "arrival" all share a type of value "location".

it should by possible to get all the locations by calling

places_of_interest = attribute_values(
    ["departure", "stay", "arrival"],
    ...
)

Assignees: joaquimrcarvalho Labels: pandas, enhancement Milestone: Projects: