Hylang - Plotting with Pandas

less than 1 minute read

Here’s an example script where I used Hylang to plot data using matplotlib.

(import os)
(import [pandas :as pd])
(import pylab)

(-> (os.path.expanduser "~/Downloads/cpiai.csv")
    (pd.DataFrame.from_csv)
    (get "Index")
    (.plot)
)

(pylab.title "Consumer Price Index")
(pylab.xlabel "year")
(pylab.ylabel "CPI")
(pylab.show)

Updated: