BIO 3360 Lecture Notes - Lecture 12: Pivot Table, Apache Spark, Text Editor
Document Summary
Eg wiki. set. index --> seasons and episodes are separate index. rolling will make it so that you can specify the window of episodes. unstack() to put as table not list, nice and pretty pivot table. expanding() cumulative sum, dataset is from that place until the end of the row. Can analyse what episodes incited people to leave ratings. With figsize((6,18)): will only apply to what is on the with block. Can put data back in columns to reset index. Analysed the data to learn how in later seasons there was higher variety in quality. _d is just a variable but of something like a throw away variable, let the user know it"s useless/unstable. Ordereddict to make a dictionary where the order you input infor into it is conserved. Np. max and np. min are just the min and max from numpy, good to use. Panel thing is like a dictionary of dataframes like a 3d cube, get a slice to view your data.