pandera.schema_components.Index.example

Index.example(size=None)[source]

Generate an example of a particular size.

Parameters

size (Optional[int]) – number of elements in the generated Index.

Return type

Index

Returns

pandas Index object.