analysis.twopeople¶
twopeople.py
Written by Raj Agrawal and Ki Deuk Kim
Contains functions used to analyze communication between two people in mailing list Examples can be found in ipython notebook “Collaboration Robustness” in examples folder Each function needs a pandas DataFrame called “exchanges” that contains every two-pair communication between participants in a mailing list.
-
bigbang.analysis.twopeople.
duration
(exchanges, A, B)¶ Gets the target two people A, B to analyze and returns the amount of time they communicated in the mailing list in TimeDelta type
-
bigbang.analysis.twopeople.
num_replies
(exchanges, A, B)¶ Returns the number of replies that two people A and B sent to each other in a tuple (# of replies from A to B, # of replies from B to A)
-
bigbang.analysis.twopeople.
panda_allpairs
(exchanges, pairs)¶ With given pairs of communication, returns a Pandas DataFrame that contains communication information between two people A and B in every pair
-
bigbang.analysis.twopeople.
panda_pair
(exchanges, A, B)¶ Forms a new Pandas DataFrame that contains information about communication between a pair A and B using functions provided above and returns the result
-
bigbang.analysis.twopeople.
reciprocity
(exchanges, A, B)¶ Returns the reciprocity of communication between two people A and B in float type. This expresses how interactively they communicated to each other
-
bigbang.analysis.twopeople.
unique_pairs
(exchanges)¶ Finds every unique pair (A, B) from the pandas DataFrame “exchanges” and returns them in set data type