MCPcopy
hub / github.com/mwaskom/seaborn-data / woman_child_or_man

Function woman_child_or_man

process/titanic.py:21–26  ·  view source on GitHub ↗
(passenger)

Source from the content-addressed store, hash-verified

19
20
21def woman_child_or_man(passenger):
22 age, sex = passenger
23 if age < 16:
24 return "child"
25 else:
26 return dict(male="man", female="woman")[sex]
27
28
29if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected