【发布时间】:2019-05-14 11:57:38
【问题描述】:
我有一个名为“数据”的表,其中的值如下所示,
ID NAME DOB LOCATION
1 bob 08/10/1985 NEW JERSEY
1 bob 15/09/1987 NEW YORK
2 John 08/10/1985 NORTH CAROLINA
2 John 26/11/1990 OKLAHOMA
例如 我想要像这样的输出,
ID NAME No.of.Days
1 bob difference of two given dates in days
2 John difference of two given dates in days
请帮助我形成一个 python 代码以获得预期的输出。
【问题讨论】:
标签: python-3.x pandas date