Rather than looking at just the .head()
or .tail()
of a dataframe, you can see a selection of random rows with:
df.sample(n)
This is useful because in a sorted dataframe, anomalous records may fall into the head or tail, contributing to a distorted perspective while conducting EDA.