question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch agg defaults to numeric_only=None

See original GitHub issue

In line with Pandas. This will also mean we can switch numeric_only=True to actually do what Pandas does which is convert everything into float64.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sethmlarsoncommented, Aug 24, 2020

Ah, we don’t support calling median_absolute_deviation on bools. I think we can update Field.is_es_agg_compatible() to return False on the boolean types for "median_absolute_deviation". Basically treat bools as non-numeric in that agg for now 😃

1reaction
sethmlarsoncommented, Aug 21, 2020

What does the error look like?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you change input parameters of pandas groupby.agg ...
I am having issues using the groupby_object.agg() method with functions where I want to change the input parameters.
Read more >
pandas.DataFrame.agg — pandas 1.5.2 documentation
Return scalar, Series or DataFrame. The aggregation operations are always performed over an axis, either the: index (default) or the column axis. This...
Read more >
$switch (aggregation) — MongoDB Manual
$switch executes the first branch it finds which evaluates to true . If none of the branches evaluates to true, $switch executes the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found