Most of the functions were written to work on a file-by-file basis instead of an event-by-event basis, thus the DataFrame operations can be confusing.