Skip to main content

Questions tagged [grouping]

The process of grouping entities into collections of associated elements.

1 vote
2 answers
39 views

Counting groups of like values within the same column

I have a dataframe containing columns with groups of 1's and -1's. Each column could contain any amount of 1's or -1's grouped together within each column, and they could also begin with an ...
Kevin's user avatar
  • 11
0 votes
0 answers
9 views

Datatable.Net rowgrouping include row columns in header

I have used the below javascript to convert my table as a datatable: var table = $('#test').DataTable({ pageLength: 60, paging: false, searching: false, bDestroy: true, //...
lanes123's user avatar
  • 147
1 vote
4 answers
46 views

Apply Group by to dictionary value

I have a Dictionary which key of string type and value of list of integer type, like this: Dictionary<string, List<int>>. Lets say I add elements to it: Dictionary<string, List<int&...
sst's user avatar
  • 23
0 votes
0 answers
19 views

Is there any way to optimize loading of a large number of groups with items in DataGrid? WinUI3

I have implemented logic for grouping items in DataGrid, but I am facing a problem that when there are a large number of items, my UI hangs and takes a very long time to render the table. C# Grouping: ...
Roman Voskoboynikov's user avatar
1 vote
2 answers
74 views

How to group by one column and then a second column to summarize

I have a data frame with two ID fields similar to the following: ID 1 ID 2 Name 5 6 Apple1 5 7 Applee 6 7 Applye 3 7 Apple2 I am trying to first group by the first ID then by the second, so that ...
Jennifer Benjamin's user avatar
0 votes
2 answers
39 views

matplotlib detect and isolate in circles different groups of points

I would like to automatically detect and isolate the different groups of points placed on a graph. I drew 3 groups, I would like to detect and isolate each of them in a circle. This is what I ...
Bast38's user avatar
  • 79
-1 votes
0 answers
34 views

how to get response from below jq data as response using jqs CE2-DG Group-id CE2-DG Group-id(CE2-LAG1, CE4-LAG1) ,CE4-DG-c Group-id(CE4-LAG1)

i want to create a map usin gbelow mentioned data I have below data want to get response like CE2-DG Group-id(CE2-LAG1, CE4-LAG1) using JQs { "Swagatha": [ { "a": ...
Swagata Mondal's user avatar
4 votes
1 answer
59 views

How to take the average of all previous entries in a group?

I'd like to do the following in python using the polars library: Input: df = pl.from_repr(""" ┌──────┬────────┐ │ Name ┆ Number │ │ --- ┆ --- │ │ str ┆ i64 │ ╞══════╪════════╡ │ ...
user24758287's user avatar
0 votes
0 answers
14 views

GroupBy a nested array of objects in TS

I have an object MealFood which contains information about a food like this: { ... id: 1, main: true, familyId: 3, scheduledServings: [ { ... time: '2024-07-09 13:00:00', quantity: ...
W_As's user avatar
  • 1
0 votes
1 answer
38 views

efficiently group list of index/value pairs to list or dict of lists

I have a long list of (i, j, value) pairs, with multiple values for each position, the number of values varies for each position. At the moment I am initializing an empty "3d" list with ...
Martin Der's user avatar
1 vote
1 answer
37 views

Adding conditions to loop to generate class intervals using ClassInt in R for areas with fewer n classes

I have issues with assigning classes to intervals that dont meet the criteria in my loop function using the classInt library in R. How do a include a condition for an automatic class if the rows in ...
Joke O.'s user avatar
  • 567
1 vote
0 answers
18 views

How to group / ungroup or expand node groups in gephi 0.10

In gephi 0.10, how to group nodes / ungroup nodes / expand node groups ? ie: how to do with gephi 0.10 (and not 0.7) the same as what happens between in the first 25s of the introduction video ...
romainCHF's user avatar
0 votes
1 answer
21 views

Grouping a dataframe in R by multiply columns and performing calculations on grouped data

I have a dataframe df in R of sports teams, including a column Season, Date, and Goals for every match, like so: Season Date Home Away Goals 1 2013 06/04/2013 Arsenal Chelsea ...
Astral's user avatar
  • 115
0 votes
2 answers
69 views

Create multidimensional structure from grouped aggregate data from an Eloquent query

I want to create a nested JSON object, something like this: [ { "age": 8, "countAll": 3, "gender": [ { "...
Pettonk Kacoa''s user avatar
6 votes
1 answer
181 views

Fastest key value grouping

Given an array of <key, value> pairs, what is the state-of-the-art approach to group the keys together by values? #include <vector> #include <random> #include <execution> #...
user2961927's user avatar
  • 1,650

15 30 50 per page
1
2 3 4 5
508