O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Representing discrete intervals using IntervalIndex

Distinct buckets of labels can be represented using an IntervalIndex. The interval is closed at one end, either the left or right, meaning that the value at that end of the interval is included in that interval. The following code shows the creation of a DataFrame using intervals as an index.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required