Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
42fc15b7
Commit
42fc15b7
authored
Apr 05, 2017
by
LE GAC Renaud
Browse files
Update dataframes to compute full_name for all people like sources.
parent
54e4bd70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/plugin_event/dataframes.py
modules/plugin_event/dataframes.py
+3
-0
No files found.
modules/plugin_event/dataframes.py
View file @
42fc15b7
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment