plydata
brain-brew
plydata | brain-brew | |
---|---|---|
2 | 7 | |
274 | 84 | |
- | - | |
0.0 | 2.5 | |
8 months ago | about 1 month ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
plydata
-
datar: the dplyr in python
from datar import f from datar.dplyr import mutate, filter, if_else from datar.tibble import tibble # or # from datar.all import f, mutate, filter, if_else, tibble df = tibble( x=range(4), y=['zero', 'one', 'two', 'three'] ) df >> mutate(z=f.x) """# output x y z 0 0 zero 0 1 1 one 1 2 2 two 2 3 3 three 3 """ df >> mutate(z=if_else(f.x>1, 1, 0)) """# output: x y z 0 0 zero 0 1 1 one 0 2 2 two 1 3 3 three 1 """ df >> filter(f.x>1) """# output: x y 0 2 two 1 3 three """ df >> mutate(z=if_else(f.x>1, 1, 0)) >> filter(f.z==1) """# output: x y z 0 2 two 1 1 3 three 1 """ Works with plotnine # example grabbed from https://github.com/has2k1/plydata import numpy from datar.base import sin, pi from plotnine import ggplot, aes, geom_line, theme_classic df = tibble(x=numpy.linspace(0, 2*pi, 500)) (df >> mutate(y=sin(f.x), sign=if_else(f.y>=0, "positive", "negative")) >> ggplot(aes(x='x', y='y')) + theme_classic() + geom_line(aes(color='sign'), size=1.2)) https://preview.redd.it/w0hs4m8fyf771.png?width=697&format=png&auto=webp&s=eadd7473a9e3393c2d58531c0b2b12f849c27e5e Easy to integrate with other libraries import klib from pipda import register_verb from datar.datasets import iris from datar.dplyr import pull dist_plot = register_verb(func=klib.dist_plot) iris >> pull(f.Sepal_Length) >> dist_plot() https://preview.redd.it/w8b8ouagyf771.png?width=892&format=png&auto=webp&s=3cc8f04e63be710f593b2b6128073f65cf7ffaa4 For more detailed and advanced usage, see https://pwwang.github.io/datar/
df = tibble( x=range(4), y=['zero', 'one', 'two', 'three'] ) df >> mutate(z=f.x) """# output x y z 0 0 zero 0 1 1 one 1 2 2 two 2 3 3 three 3 """ df >> mutate(z=if_else(f.x>1, 1, 0)) """# output: x y z 0 0 zero 0 1 1 one 0 2 2 two 1 3 3 three 1 """ df >> filter(f.x>1) """# output: x y 0 2 two 1 3 three """ df >> mutate(z=if_else(f.x>1, 1, 0)) >> filter(f.z==1) """# output: x y z 0 2 two 1 1 3 three 1 """ ``` Works with plotnine ```python example grabbed from https://github.com/has2k1/plydata import numpy from datar.base import sin, pi from plotnine import ggplot, aes, geom_line, theme_classic df = tibble(x=numpy.linspace(0, 2*pi, 500)) (df >> mutate(y=sin(f.x), sign=if_else(f.y>=0, "positive", "negative")) >> ggplot(aes(x='x', y='y')) + theme_classic() + geom_line(aes(color='sign'), size=1.2)) ``` ![plotnine](https://github.com/pwwang/datar/raw/master/example.png) Easy to integrate with other libraries ```python import klib from pipda import register_verb from datar.datasets import iris from datar.dplyr import pull dist_plot = register_verb(func=klib.dist_plot) iris >> pull(f.Sepal_Length) >> dist_plot() ``` ![klib](https://github.com/pwwang/datar/raw/master/example2.png) For more detailed and advanced usage, see https://pwwang.github.io/datar/
brain-brew
-
Add recommendation for Exporting my cards as a CSV and then importing after making changes?
I was able to use Brain Brew https://github.com/ohare93/brain-brew/ to import my CSV (eventually). You'll need some programming knowledge (I'm new to Python but I got it working). Basic steps for me was 1) Create a deck in Anki with 1 record; 2) export it in JSON (after installing CrowdAnki); 3) use Brain Brew to convert the JSON to files in a src directory - using the starter repo was helpful https://github.com/ohare93/brain-brew-starter; 4) include the CSV file in the project; 5) use Brain Brew to convert the src files into a deck that can be uploaded (a "build"); 6) use CrowdAnki to import the newly generated build.
- Anki and sharing decks, would Anki be a good option for a group of people all trying to add cards to a deck, or would another app be better?
-
Merging note types
Have you had a look at Brain Brew? It's the tool we use to manage the Ultimate Geography deck. First, you'd have to export your other deck with the CrowdAnki addon, then write a Brain Brew recipe to parse the CrowdAnki JSON export and spit out the data and note type to CSV/YAML. Once you have that, you'd have to fork/clone the UG repo, then write a recipe to generate a CrownAnki JSON file that combines the two decks, and finally import that JSON file into Anki.
-
Anyone interested in Anki to Markdown(Obsidian) convertor?
Sounds like you'd like Brain Brew, if Markdown was added as a Source type. Currently has two way sync between Csv and CrowdAnki, and the conversion is all abstracted so that other source types can be added.
-
Are there tools/plugins that support a more complete learning workflow?
To continue throwing things at the wall to see what sticks... how about https://github.com/ohare93/brain-brew
-
Brain Brew: Source Control <-> Anki; Setup with your own notes with 1 command!
Brain Brew ðŸ§
- Facilitate collaboration and maximize user choice with Brain Brew
What are some alternatives?
Pandas - Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
anki-ultimate-geography - Geography flashcard deck for Anki
datar - A Grammar of Data Manipulation in python
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
Dask - Parallel computing with task scheduling
Obsidian_to_Anki - Script to add flashcards from text/markdown files to Anki
anki-uk-geography - Anki flash card deck for learning UK administrative geography
leetcode-anki - Anki cards generator for Leetcode
closet - The Web Framework for Flashcards
clippy-kindle - Create Anki flashcards and markdown files from your Kindle notes/highlights.
roamsr - Spaced Repetition in Roam Research
mnemocards - In addition to helping you memorise, this code helps you do other things that I don't remember...