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.

group_by: date - not working?

See original GitHub issue

Thanks so much for sharing this card @kalkih !

I can’t for the life of me figure out why the group_by flag isn’t working - I copied your exact template from the guide and changed the sensor only.

Each day has multiple bar-points (the last two “trends” are two days).

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.fronius_day_energy
name: Energy Generation
hours_to_show: 168
aggregate_func: max
group_by: date
show:
  graph: bar

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kalkihcommented, Oct 29, 2019

Not without changing the source code, but yes, we should probably skip the timestamp if grouped by date.

1reaction
simonwood0609commented, Oct 29, 2019

Sorry for the late reply - thanks, that fixed it! Just deleted the plugin & re-installed via HACS since I’d previously added it manually.

By the way, any way to easily remove the timestamp from the data when mouse-over?

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Pandas Group by date using datetime data
I have a column Date_Time that I wish to groupby date time without creating a new column. Is this possible the current code...
Read more >
How to Group Pandas DataFrame By Date and Time
In this article, we will discuss how to group by a dataframe on the basis of date and time in Pandas. We will...
Read more >
Filter and Groupby Date not working Properly · Issue #15843 - GitHub
In the image I am trying to group by day - month and year because the field is a datetime field. at the...
Read more >
How to Group by Month in Pandas DataFrame (With Example)
This tutorial explains how to group rows by month in a pandas DataFrame, including several examples.
Read more >
Group By: split-apply-combine — pandas 0.25.2 documentation
This means that the output column ordering would not be consistent. To ensure consistent ordering, the keys (and so output columns) will always...
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