import rtemis as rt
3 Read
3.1 Read data
The read()
function can read tabular data into a polars DataFrame.
= rt.read("~/Data/iris.csv") dat
06-06-23 23:37:25 ▶ Reading iris.csv... [read]
06-06-23 23:37:25 Got 149 rows & 5 columns [read]
06-06-23 23:37:25 Read in 0.00693 seconds [read]
dat.head()
shape: (5, 5)
sepal_length | sepal_width | petal_length | petal_width | species |
---|---|---|---|---|
f64 | f64 | f64 | f64 | str |
4.7 | 3.2 | 1.3 | 0.2 | "setosa" |
4.4 | 2.9 | 1.4 | 0.2 | "setosa" |
4.3 | 3.0 | 1.1 | 0.1 | "setosa" |
5.7 | 3.8 | 1.7 | 0.3 | "setosa" |
5.1 | 3.8 | 1.5 | 0.3 | "setosa" |