British Library Tweets

Read TSV file using Pandas

The dt.floor() method 'rounds off' the timestamp to the highest value below the current value. The code 'S' performs this 'flooring' action at the level of the second. You can also use many other codes.

In the code below, the result of the groupby mention is assigned to a Series named 'tps' ('tweets per second')

most liked tweets