v0.4.0
Key updates
Support for Python 3.9 (support for Python 3.6 discontinued)
Library dependencies and tests have been updated so as to make whatstk
compatible with Python 3.9. This however lead to the discontinuation of Python 3.6 support.
New chat df format
Date field was being used as the index of the chat DataFrame. This does not make sense, as dates may be repeated and we'd ideally have unique identifiers for each row entry. Now, the ids are numeric integers ordered by message date.
Now (>=v0.4.0)
>>> from whatstk import WhatsAppChat
>>> from whatstk.data import whatsapp_urls
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.POKEMON)
>>> chat.df.head(5)
date username message
0 2016-08-06 13:23:00 Ash Ketchum Hey guys!
1 2016-08-06 13:25:00 Brock Hey Ash, good to have a common group!
2 2016-08-06 13:30:00 Misty Hey guys! Long time haven't heard anything fro...
3 2016-08-06 13:45:00 Ash Ketchum Indeed. I think having a whatsapp group nowada...
4 2016-08-06 14:30:00 Misty Definetly
Deprecated (<=v0.3.1)
>>> from whatstk import WhatsAppChat
>>> from whatstk.data import whatsapp_urls
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.POKEMON)
>>> chat.df.head(5)
username message
date
2016-08-06 13:23:00 Ash Ketchum Hey guys!
2016-08-06 13:25:00 Brock Hey Ash, good to have a common group!
2016-08-06 13:30:00 Misty Hey guys! Long time haven't heard anything fro...
2016-08-06 13:45:00 Ash Ketchum Indeed. I think having a whatsapp group nowada...
2016-08-06 14:30:00 Misty Definetly