Top "Grouping" questions

The process of grouping entities into collections of associated elements.

How to group dates by week?

I am writing an Excel exporter for a bespoke application I am creating, and I have a question about LINQ …

c# linq grouping
How do we group in BIRT without wasting lines, and still only printing the group item on the first line?

When grouping in BIRT, we frequently want the grouping value to show up on the first line as follows: Group …

reporting grouping birt
How to group items by index? C# LINQ

Suppose I have var input = new int[] { 0, 1, 2, 3, 4, 5 }; How do I get them grouped into pairs? var output = new int[][] { new …

c# .net linq ienumerable grouping
NullPointerException: element cannot be mapped to a null key

I have read the topic: Collectors.groupingBy doesn't accept null keys But I don't understand how can I apply it …

java java-8 grouping java-stream
How to sum elements at the same index in array of arrays into a single array?

Let's say that I have an array of arrays, like so: [ [0, 1, 3], [2, 4, 6], [5, 5, 7], [10, 0, 3] ] How do I generate a new array that sums …

javascript arrays grouping
How to assign the same style to a group of edges?

I've got a graph that I want graphviz to layout and visualize for me. The graph has 122 edges and 123 nodes. …

coding-style grouping stylesheet graph-theory graphviz
Parsing JSON record-per-line with jq?

I've got a tool that outputs a JSON record on each line, and I'd like to process it with jq. …

json grouping jq jsonlines
How to set the Taskbar Grouping Icon

When my application opens too many windows the taskbar groups them into one button. Each window has its own icon, …

.net winforms icons grouping taskbar
Split a list of tuples into sub-lists of the same tuple field

I have a huge list of tuples in this format. The second field of the each tuple is the category …

python list sorting grouping
Add a sequence number to each element in a group using python

I have a dataframe of individuals who each have multiple records. I want to enumerate the record in the sequence …

python database pandas count grouping