I have a pandas dataframe (df) with many subjects.
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 subject 20640 non-null object
1 block 20640 non-null int64
Say I want to subset the df with the first n unique subjects (keeping all rows for those n subjects). Is there an easy command to do that?