Commit 42fc15b7 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update dataframes to compute full_name for all people like sources.

parent 54e4bd70
......@@ -839,6 +839,7 @@ def get_peoplelike_items(**kwargs):
* domain (str)
* end_date (date): undefined dates are forced to ``DATE_MAX``
* first_name (str)
* full_name(str)
* history_note (str)
* last_name (str)
* people_categories_category (str)
......@@ -900,6 +901,7 @@ def get_peoplelike_items(**kwargs):
.set_index("id")
.pipe(normalize_history_data)
.assign(
full_name=lambda x: full_name(x.first_name, x.last_name),
start_date=lambda x: x.start_date.fillna(DATE_MIN),
end_date=lambda x: x.end_date.fillna(DATE_MAX)))
......@@ -1103,6 +1105,7 @@ def get_peoplelike_items_per_year(**kwargs):
* domain (str)
* end_date (date): undefined dates are forced to ``DATE_MAX``
* first_name (str)
* full_name (str)
* history_note (str)
* last_name (str)
* people_categories_category (str)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment