We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# Matchers
is it possible to extend Matchers
Matchers
def selecter(fn:callable(), _): """ Matcher that matches f (value) = True """ return fn(_)
then
news_paper = freeze({'articles': [{'author': 'Sara', 'content': 'A short article'}, {'author': 'Steve', 'content': 'A slightly longer article'}], 'weather': {'temperature': '11C', 'wind': '5m/s'}}) very_short_news = news_paper.transform(['articles' , lambda n:len(n['content'])>15 , 'content'], lambda _: "longer story")
the it only go down if a predicate was eval to True ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
# Matchers
is it possible to extend
Matchers
then
the it only go down if a predicate was eval to True ?
The text was updated successfully, but these errors were encountered: