Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.4.0 #106

Merged
merged 37 commits into from
Jan 24, 2021
Merged

Release/0.4.0 #106

merged 37 commits into from
Jan 24, 2021

Conversation

lucasrodes
Copy link
Owner

@lucasrodes lucasrodes commented Jan 24, 2021

Major 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

@codecov
Copy link

codecov bot commented Jan 24, 2021

Codecov Report

Merging #106 (9947300) into master (a9f1489) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #106   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files          21       21           
  Lines         577      578    +1     
  Branches       86       86           
=======================================
+ Hits          562      563    +1     
  Misses          9        9           
  Partials        6        6           
Impacted Files Coverage Δ
whatstk/whatsapp/generation.py 100.00% <ø> (ø)
whatstk/__init__.py 100.00% <100.00%> (ø)
whatstk/_chat.py 100.00% <100.00%> (ø)
whatstk/analysis/interventions.py 100.00% <100.00%> (ø)
whatstk/utils/chat_merge.py 100.00% <100.00%> (ø)
whatstk/whatsapp/objects.py 100.00% <100.00%> (ø)
whatstk/whatsapp/parser.py 95.50% <100.00%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9f1489...9947300. Read the comment docs.

@lucasrodes lucasrodes merged commit 60de40a into master Jan 24, 2021
@lucasrodes lucasrodes deleted the release/0.4.0 branch January 24, 2021 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant