Visualising your data

Viewing your data

The print function will just show your data, use the built in method .display() to see them together

# first load your data and create a behavpy instance of it

df.display()
Example output from .display()

Summary statistics

You can also get quick summary statistics of your dataset with .summary()

circle-info

Be careful with the pandas method .groupby(). This will return a pandas object back and not a behavpy object. Most other common pandas actions will return a behavpy object.

Visualising your data

Whilst summary statistics are good for a basic overview, visualising the variable of interest over time is usually a lot more informative.

Heatmaps

The first port of call when looking at time series data is to create a heatmap to see if there are any obvious irregularities in your experiments.

output plot for the .heatmap() function for the movement variable in Drosophila

Last updated