Skip to content

Commit

Permalink
Add other names to panthera
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmarazzi committed Jul 4, 2019
1 parent 55d363e commit 1c1394d
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 50 deletions.
2 changes: 1 addition & 1 deletion src/panthera/pandas/conversion.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

(defn astype
[df-or-srs dtype & [attrs]]
(u/kw-call df-or-srs "astype" dtype attrs))
(u/kw-call df-or-srs "astype" dtype attrs))
2 changes: 1 addition & 1 deletion src/panthera/pandas/generics.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

(defn shape
"Returns the shape of the given object. If a
[[dataframe]] the first value is the count of rows
[[data-frame]] the first value is the count of rows
and the second one the count of columns. If a
[[series]] there are no columns.
Expand Down
6 changes: 3 additions & 3 deletions src/panthera/pandas/math.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[libpython-clj.python :as py]
[panthera.pandas.utils :as u]))

(defn base-math
(defn- base-math
[k]
(fn [df-or-srs other & [attrs]]
(u/kw-call df-or-srs
Expand Down Expand Up @@ -104,7 +104,7 @@
(u/simple-kw-call df-or-srs "cov" (first args))
(u/kw-call df-or-srs "cov" (first args) (second args))))

(defn base-cumulative
(defn- base-cumulative
[k]
(fn [df-or-srs & [attrs]]
(u/simple-kw-call df-or-srs
Expand Down Expand Up @@ -138,7 +138,7 @@
[df-or-srs & [attrs]]
(u/simple-kw-call df-or-srs "describe" attrs))

(defn other-ops
(defn- other-ops
[k]
(fn [df-or-srs & [attrs]]
(u/simple-kw-call df-or-srs
Expand Down
91 changes: 46 additions & 45 deletions src/panthera/panthera.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns panthera.panthera
(:refer-clojure
:exclude [mod])
:exclude [mod any?])
(:require
[tech.parallel.utils :refer [export-symbols]]
[panthera.pandas.generics]
Expand Down Expand Up @@ -46,50 +46,50 @@

(export-symbols
panthera.pandas.math
add
sub
mul
div
mod
pow
dot
ne
quantile
kurtosis
lt
gt
std
le
ge
eq
ne
dot
abs
all?
add
any?
autocorr
between
clip
corr
cnt
cov
cummax
cummin
diff
ge
cumprod
clip
cumsum
diff
eq
compound
describe
kurtosis
mean-abs-dev
maximum
minimum
mean
median
all?
corr
sub
mod
pow
skew
rank
maximum
mode
between
pct-change
quantile
rank
cummin
cnt
cummax
autocorr
cov
div
round
mul
sem
skew
std
var)
var
abs
median
gt
minimum
describe
mean-abs-dev)

(export-symbols
panthera.pandas.utils
Expand All @@ -101,26 +101,27 @@

(export-symbols
panthera.pandas.conversion
->numeric
->datetime
->timedelta
date-range
astype
->numeric
timedelta-range
infer-time-freq
astype)
->datetime)

(export-symbols
panthera.pandas.reshape
crosstab
pivot
aggregate
crosstab
cut
rolling
concatenate
remap
factorize
qcut
merge-ordered
dropna
merge-asof
concatenate
factorize
aggregate
remap
groupby
rolling
ewm)
ewm
groupby)

0 comments on commit 1c1394d

Please sign in to comment.