|
22 | 22 |
|
23 | 23 | ;; I recently relaunched an old Scicloj project called [tablecloth.time](https://github.com/scicloj/tablecloth.time). The goal of this project was to build a composable |
24 | 24 | ;; extension for time series analysis built on top of |
25 | | -;; [tablecloth](https://scicloj.github.io/tablecloth/). Throughout this post, |
26 | | -;; `tct` refers to `tablecloth.time.api` and `tc` refers to `tablecloth.api`. |
27 | | -;; Originally, we |
| 25 | +;; [tablecloth](https://scicloj.github.io/tablecloth/). Originally, we |
28 | 26 | ;; had built this project around a dataset index mechanism that was |
29 | 27 | ;; built into tech.ml.dataset, but after that feature was removed in |
30 | 28 | ;; v7, the project required a rethink. This post walks through that |
|
33 | 31 |
|
34 | 32 | ;; ## Why No Index? |
35 | 33 | ;; |
36 | | -;; The original tablecloth.time was built around an index two reasons: |
37 | | -;; performance (tree-based indexes offer O(log n) lookups) and |
38 | | -;; convenience |
| 34 | +;; The original tablecloth.time was built around an index for two |
| 35 | +;; reasons: performance (tree-based indexes offer O(log n) lookups) |
| 36 | +;; and convenience |
39 | 37 | ;; (you don't have to keep specifying which column is the time |
40 | 38 | ;; column). Anyone who has used the Python Pandas data processing |
41 | 39 | ;; library is likely familiar with this feature. |
|
64 | 62 | ;; [Composability Over Abstraction](https://humanscodes.com/tablecloth-time-relaunch) |
65 | 63 | ;; on humanscodes. |
66 | 64 |
|
67 | | -;; Now let's dig into this library's primitivs and basic functionality. |
| 65 | +;; Now let's dig into this library's primitives and basic functionality. |
68 | 66 |
|
69 | 67 | ;; ## Loading the Data |
70 | 68 | ;; |
71 | 69 | ;; We'll use the `vic_elec` dataset: half-hourly electricity demand from Victoria, |
72 | | -;; Australia, spanning 2012-2014. Let's load it and take a look. |
| 70 | +;; Australia, spanning 2012-2014. Let's load it and take a look. Throughout these examples the tablecloth library is aliased as `tc`, following the common conventio, and tablecloth.time is aliased as `tct`. |
73 | 71 |
|
74 | 72 | (def vic-elec |
75 | 73 | (-> (tc/dataset "https://gist.githubusercontent.com/ezmiller/6edf3e0f41848f532436c15bc94c2f4d/raw/vic_elec.csv" |
|
0 commit comments