def
head
cauldron.display.head()

Displays a specified number of elements in a source object of many different possible types.

Arguments
Required
Optional
source

Any

DataFrames will show count rows of that DataFrame. A list, tuple or other iterable, will show the first count rows. Dictionaries will show count keys from the dictionary, which will be randomly selected unless you are using an OrderedDict. Strings will show the first count characters.

count

int

The number of elements to show from the source.

Default Value: 

5

Basic Usage
01
02
03
04
05
06
07
import cauldron as cd # Create a list containing integers from 0 to 499 long_list = list(range(500)) # Show the first 20 elements of the long list cd.display.head(long_list, 20)