This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-17
Channels
- # aleph (3)
- # announcements (12)
- # beginners (80)
- # boot (3)
- # braveandtrue (16)
- # calva (3)
- # cider (82)
- # clojure (100)
- # clojure-art (3)
- # clojure-dev (79)
- # clojure-estonia (1)
- # clojure-europe (4)
- # clojure-finland (15)
- # clojure-indonesia (1)
- # clojure-italy (20)
- # clojure-nl (4)
- # clojure-spec (24)
- # clojure-sweden (2)
- # clojure-switzerland (1)
- # clojure-uk (99)
- # clojurescript (145)
- # cursive (8)
- # data-science (7)
- # datomic (26)
- # emacs (4)
- # figwheel-main (20)
- # fulcro (8)
- # graphql (3)
- # hoplon (2)
- # jobs (1)
- # kaocha (5)
- # leiningen (2)
- # liberator (19)
- # off-topic (16)
- # pathom (9)
- # perun (1)
- # portkey (2)
- # re-frame (17)
- # reitit (1)
- # shadow-cljs (26)
- # spacemacs (7)
- # vim (49)
Oh god, help me...
def get_data(category="App"):
df = pd.read_csv('data/data.csv', parse_dates=['PERIOD'])
df = df[df['MODEL_TYPE'] == "App"]
df = df.set_index(['MODEL_NAME'])
df = df.sort_values(by=['PERIOD'])
return df
why don’t you use a thread macro instead?
@U2J4FRT2T actually good explanation is provided in a book by the author of Pandas. Nonetheless, I wrote better code than 2 ways provided in the book: Python for Data Analysis.
@UDBM9Q0VC I wish...
df = df[df['MODEL_TYPE'] == "App"]
should be df = df[df['MODEL_TYPE'] == "App" ? 1 : 0]
My eyes are burning
shouldn't it be using 600% cpu? macos, 6 cores. ag == the_silver_searcher it surprises me given the 8 threads are there
try using https://github.com/BurntSushi/ripgrep instead
working very nicely, thanks! it gives me instant results on a 25GB corpus of pwned_passwords. ag nothing, it just seems to hang (probably it chokes on it given the corpus size)
What’s the rg
equivalent of ag
’s --file-search-regex
?
I like doing ag --file-search-regex project\\.clj -L "main"
e.g.