-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sub- and superdeck support #144
Comments
Hi @geldbogen :) I think you can probably achieve this fairly easily (can't test completely, but here's a small toy example): # Example dataframe (that would be your notes + cards data frame)
# you'd get that from your collection (cards, or notes with merged in cards)
df = pd.DataFrame({"cdeck": ['asdf::234', 'sdfer']})
# split the deck field, this is what you'd have to apply to get the new column
df['first_deck'] = df['cdeck'].apply(lambda deck: deck.partition('::')[0]) the
is this what you want? |
Hey @klieret, Kind regards from Germany, |
Hi @geldbogen, thanks for following up :) I think I'm still a bit confused. Because AnkiDataFrame is a subclass of a pandas DataFrame, the same code above should work for it (and then you can simply continue your analysis with the new column). Or are you suggesting that this should be added by default? I'd be a bit skeptical about adding derived columns to the dataframe, as this increases the complexity of the package. The main issue would be how to deal with changes to that column when writing back to the collection (because that would mean it's out of sync with the Sending best regards to Germany :) I'd love to support contributions. I unfortunately have very little time to devote to this package these days. There are several urgent issues tied to writing back into the database: #137 , #50 , #32 (not sure if this is reproducible). We probably currently miss something there. This might require digging in the Anki source to see how they interface with the database. A much easier (but also urgent) issue would be #143 (currently we require |
Hey, |
Yes, we could do this, but I feel like this would be more confusing to users: The I'm also not sure how many users actually need this column, and it's easy enough to add... But thank you for the suggestion :) |
Hey all,
first comment here, so please don't burn me 😄
I would like to suggest another field, called "superdeck", where one can see the highest level deck of the note. For example, if I have a note/card in the deck First Deck::Second Deck::Third Deck, it would show First Deck in this field.
Because I have a lot of subdecks in one deck, it makes it kind of tedious to analyze them properly.
Kind regards,
The text was updated successfully, but these errors were encountered: