Questions tagged [grouping]
The process of grouping entities into collections of associated elements.
grouping
7,608
questions
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 ...
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,
//...
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&...
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:
...
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 ...
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 ...
-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": ...
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 │
╞══════╪════════╡
│ ...
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: ...
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
...
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 ...
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 ...
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 ...
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": [
{
"...
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>
#...