File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ com.github.clojure-finance/clojask {:mvn/version "1.2.1"}
106
106
6 . Output the resultant dataset to "result.csv" (Use 8 threads)
107
107
108
108
``` clojure
109
- (ck/compute df 8 " result.csv" :select [" Employee" " EmployeeName" " Department" " newSalary " " UpdateDate" ])
109
+ (ck/compute df 8 " result.csv" :select [" Employee" " EmployeeName" " Department" " NewSalary " " UpdateDate" ])
110
110
```
111
111
112
112
See [ ` compute ` ] ( https://clojure-finance.github.io/clojask-website/posts-output/API/#compute )
Original file line number Diff line number Diff line change 48
48
(sort [a b] " sort the dataframe based on columns" )
49
49
(addFormatter [a b] " format the column as the last step of the computation" )
50
50
(preview [sample-size output-size format] " quickly return a vector of maps about the resultant dataframe" )
51
- (final [] " prepare the dataframe for computation" )
52
51
(previewDF [] " preview function used for error predetection" )
53
52
(errorPredetect [msg] " prints exception with msg if error is detected in preview" )
54
53
)
248
247
(throw (Clojask_TypeException. " Input includes non-existent column name(s)." )))
249
248
(.setFormatter col-info format col))
250
249
251
- (final
252
- [this]
253
- (doseq [tmp (.getFormatter (:col-info this))]
254
- (.operate this (nth tmp 1 ) (get (.getIndexKey col-info) (nth tmp 0 )))))
255
-
256
250
(preview
257
251
[this sample-size return-size format]
258
252
(cond (not (and (integer? sample-size) (integer? return-size)))
277
271
(assert (or (= (count select) (count index)) (= select [nil ]))(Clojask_OperationException. " Must select existing columns. You may check it using" ))
278
272
(if (<= num-worker 8 )
279
273
(do
280
- ; ; (.final this)
281
274
(if (= ifheader nil ) (.printCol this output-dir index))
282
275
(let [res (start-onyx num-worker batch-size this output-dir exception order index melt)]
283
276
(if (= res " success" )
You can’t perform that action at this time.
0 commit comments