Step#
import hvplot.pandas # noqa
step
can be used pretty much anytime line might be used and has many of the same options available.
from bokeh.sampledata.degrees import data as deg
deg.sample(n=5)
Year | Agriculture | Architecture | Art and Performance | Biology | Business | Communications and Journalism | Computer Science | Education | Engineering | English | Foreign Languages | Health Professions | Math and Statistics | Physical Sciences | Psychology | Public Administration | Social Sciences and History | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | 1976 | 22.252760 | 21.394491 | 61.3 | 36.072871 | 23.430038 | 44.3 | 23.9 | 72.166525 | 4.5 | 62.148194 | 74.4 | 79.2 | 41.5 | 20.0 | 56.9 | 65.6 | 39.2 |
10 | 1980 | 30.759390 | 28.080381 | 63.4 | 43.999257 | 36.765725 | 54.7 | 32.5 | 74.981032 | 10.3 | 65.284130 | 74.1 | 83.5 | 42.8 | 24.6 | 65.1 | 74.6 | 44.2 |
0 | 1970 | 4.229798 | 11.921005 | 59.7 | 29.088363 | 9.064439 | 35.3 | 13.6 | 74.535328 | 0.8 | 65.570923 | 73.8 | 77.1 | 38.0 | 13.8 | 44.4 | 68.4 | 36.8 |
35 | 2005 | 47.672754 | 43.100368 | 61.4 | 61.500984 | 49.791851 | 63.4 | 20.6 | 79.067122 | 17.9 | 68.571221 | 69.9 | 86.0 | 45.1 | 41.6 | 77.5 | 81.2 | 50.0 |
17 | 1987 | 31.486429 | 38.730675 | 61.7 | 50.209878 | 46.690466 | 60.2 | 32.4 | 76.963092 | 14.0 | 66.706031 | 72.0 | 85.5 | 46.5 | 30.4 | 70.1 | 76.4 | 43.9 |
deg.hvplot.step(x='Year', y=['Art and Performance', 'Business', 'Biology', 'Education', 'Computer Science'],
value_label='% of Degrees Earned by Women', legend='top', height=500, width=620)