Questions tagged [grouping]

The process of grouping entities into collections of associated elements.

Grouping is a form of hierarchical knowledge representation, similar to mind mapping, concept mapping and argument mapping, all of which need to observe at least some of the principles of grouping.

SQL Server - Indicates whether a specified column expression in a GROUP BY list is aggregated or not. Read more about this

Wiki Links

7381 questions
2
votes
2 answers

Using IComparer for grouping and sorting

I am trying to use IComprarer to a complex sort. I have this complex type (for sake of simplicity, three ints): ID | A | B 1 | 1 | 10 2 | 3 | 20 3 | 1 | 30 4 | 3 | 5 5 | 2 | 15 And i need to Sort by B, but i need to keep A together. B can be…
Rafael
  • 345
  • 3
  • 16
2
votes
4 answers

R: How to find number of counts based on time and date

The goal I'm trying to achieve is to count how many events occur for the given day of week and hour sample data: Date Time 2007-07-20 11:00:00 2007-01-05 06:15:00 2007-12-11 23:55:00 2007-12-11 23:55:00 to Output: Day Hour …
Jamal Jenkins
  • 23
  • 1
  • 3
2
votes
1 answer

MySQL grouping by season

Im trying to figure out the most efficient way of calculating statistics using data from MySQL database with dates. Currently, I use the following syntax Example: SELECT sum(Precipitation) from DataTable GROUP BY YEAR(Datetime) This works perfectly…
Jachym
  • 485
  • 9
  • 21
2
votes
2 answers

Pandas: adding new column to existing Data Frame for grouping purposes

I have a pandas Data Frame consisting of 2000 rows x 8 columns. I want to be able to group the first 4 columns together, as well as the other 4, but I can't figure out how. The purpose is to create a categorical bar plot, with colors assigned…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
2
votes
2 answers

Merge two flat associative arrays and sum values on matching keys

I have two associative arrays and they are very similar to each other (But not the same) they are both separate arrays and I want to merge them together while maintaining both the arrays this can be done by: Making sure the values ADD if the keys…
ConorReidd
  • 276
  • 5
  • 25
2
votes
1 answer

Adding path to fabric.js group is reversing position or z-index?

I'm trying to add paths in a group by id. But it seems to either reversing the positions of the paths or the z-index - like [red,blue,green] goes [green,blue,red]. How do i do this the correct way? var id_no; var objList=[]; if (!id_no) { id_no=1;…
Flemming
  • 694
  • 7
  • 22
2
votes
2 answers

Silverlight binding in a DataGridRowGroupHeader doesn't update when DataSource changes

I have a Binding in a inline style for the DataGridRowGroupHeader like this.