kaustubhhiware / facebook-archive

Just some fun you can have with facebook's archive data
MIT License
74 stars 42 forks source link

Analysis of user's reactions #20

Closed parimatrix closed 6 years ago

parimatrix commented 6 years ago

I added two features

  1. A plot of a count of user's reactions
  2. Display of the top 10 user's friends whose posts are most liked/reacted to by the user.

Closes #6

parimatrix commented 6 years ago

Added the plots. Would take time to make the data. Cause I will have to figure out how to replace people's names with dummy ones, as it's a normal sentence and not a JSON key value in the data.

kaustubhhiware commented 6 years ago

The plots are sure impressive. Addressing your own itinerary mentioned on #6

Show the variation of number of reactions over different time periods.

This will be another plot, where x axis is time, y is count, and there will be 5-6 "lines", each line denoting what react. Do you plan to do this in the same PR?

Show the names of friends whose posts we reacted to the most, or top 5. Something like that.

Do you wish to implement this?

Don't worry about points, if this PR has a lot of work put in, points will be given accordingly. 1 big PR will get the same points as 2 small ones.

parimatrix commented 6 years ago

Thanks. Okay, yeah. I will try to do the new plot in this PR only. Less number of PRs means less clutter. Regarding, the top 10 friends, I already did implement it. It shows a list of top 10 friends on the command line.

parimatrix commented 6 years ago

I have added the plot for the cumulative count of different reactions, and the image too. I have added all reactions including 'LIKE', though I feel we should omit that cause number of 'LIKE's is way too large as compared to other reactions and that kind of spoils the plot.

kaustubhhiware commented 6 years ago

Great work ! :smile: Only two things remain: i) add sample json file ii) update README features.

As soon as you're done with these, I'll merge it in.

parimatrix commented 6 years ago

Readme Updated. One request, can we make a separate issue for adding the example JSON files. I find it would be really helpful if someone could handle that efficiently.
If no, then I would try to do it then. Thanks! 😃

kaustubhhiware commented 6 years ago

Can't you just keep like 100 reacts from the file, and remove the names ?

You don't have to make your complete file anonymous. You could use regex matching to replace real people's name from your file, it seems too trivial to add another issue just to create an example file.

parimatrix commented 6 years ago

Okay, sure. I will do that

parimatrix commented 6 years ago

Hi. So yeah, the names were intended to be displayed on the terminal. I did not know about a plot for that too. Will come up with a plot for that, soon.

parimatrix commented 6 years ago

@xprilion Done that. Added in readme too, and the image in the images. :)

kaustubhhiware commented 6 years ago

Since no other mentor has objections, merging this in.

kaustubhhiware commented 6 years ago

@parimatrix , I was seeing the reactions as a function of month plot, the reacts at month 1 and 10 (Feb and Nov) are lowest. Can you try to think why?

I was wondering we could have some insights from this plot. The other plots are pretty straight forward.

parimatrix commented 6 years ago

@kaustubhhiware Well, I can think of no explanation for Feb. For Nov and also May (that's low too), in my case, it's pretty clear what affects it, The One and Only EndSemester Exams :P. I guess so. But the reason would be different for different people. Maybe among students, it may be common, but don't know for others. :(