Questions tagged [multi-level]

529 questions
2
votes
3 answers

Repeating a value within each ID when there are multiple value options in R

I have a dataset in R with multiple height observations within different IDs. For some IDs, there are several different height measures and for some, there is only one. For most observations/rows within each ID, the height value is missing (coded as…
2
votes
3 answers

Javascript Grid with multiple groupings

I would like to know if there are other javascript components that provide presentation of grid with multiple groupings. Below is a screenshot of jqGrid I extended to allow the feature however it needs all the data to be fetched. I would like that…
NeverFall
  • 229
  • 5
  • 10
2
votes
2 answers

Laravel count multilevel groupBy

table Items : [created_at => 2020-08-12 06:00:00, type =>2] [created_at => 2020-08-12 07:00:00, type =>1] [created_at => 2020-08-12 08:00:00, type =>1] [created_at => 2020-08-11 12:00:00, type =>3] [created_at => 2020-08-11 21:00:00, type =>3] I…
thetispro
  • 23
  • 3
2
votes
0 answers

Bootstrap 4.5.0 MultiLevel menu. How to do?

I am new to Bootstrap. Using latest version 4.5.0, I want to create a multilevel menu, with three levels. There are various instances of these in Bootstrap 4.4.1 however the model for navbar and dropdowns has changed in 4.5.0. There is an…
Simon Stewart
  • 21
  • 1
  • 6
2
votes
2 answers

How to convert data frame with dictionary columns into multi level data frame

I have DataFrame which contains dictionaries in the columns. Can be created as below lis = [ {'id': '1', 'author': {'self': 'A', 'displayName': 'A'}, 'created': '2018-12-18', 'items': {'field': 'status', …
Praveen
  • 2,137
  • 1
  • 18
  • 21
2
votes
1 answer

How to sort multilevel index on column values

I'm trying to sort data in a multilevel index for visualisation. At this point it is purely to order the data based on the values I've tried working with sort_index and sort_values, however neither have worked. I'm assuming there is a way to combine…
LeFraf
  • 333
  • 1
  • 3
  • 10
2
votes
1 answer

How to use the sum values from a column in a multi-level indexed pandas dataframe as a condition for values in new column

I have a multi-level index pandas dataframe. I would like to create a new column where the values in this column are based on a condition. This condition is based on summing another column for that index, which is then halved. If this is less than…
Alexander Caskie
  • 357
  • 3
  • 13
2
votes
3 answers

How to break/exit different levels of method-calling in Java

Let's say I have: public void one() { two(); // continue here } public void two() { three(); } public void three() { // exits two() and three() and continues back in one() } Are there any methods to doing this?
Hamlyn
  • 23
  • 1
  • 1
  • 3
2
votes
1 answer

Handling error "TypeError: Expected tuple, got str" loading a CSV to pandas multilevel and multiindex (pandas)

I'm trying to load a CSV file (this file) to create a multiindex e multilevel dataframe. It has 5(five) indexes and 3(three) levels in columns. How I can do? Here is the code: df = pd.read_csv('./teste.csv' ,index_col=[0,1,2,3,4] …
Andre Araujo
  • 2,348
  • 2
  • 27
  • 41
2
votes
1 answer

mice: splitting imputed data for further analysis

I am using the mice package (version 3.3.0) to perform multiple imputations (MI). The MI procedure works fine. For further analysis I would like to separate/split/subset imputed data by the variable ‘group’ like indicated in the example…
Gurkenhals
  • 29
  • 7
2
votes
0 answers

Python: Random intercept model (have to replicate R code)

I'm trying to replicate code from R that estimates a random intercept model. The R code is: fit=lmer(resid~-1+(1|groupid),data=df) I'm using the lmer command of the lme4 package to estimate random intercepts for the variable resid for observations…
Hamza
  • 63
  • 1
  • 7
2
votes
1 answer

jQuery accordion with href and collapsible

I'm working on an accordion menu with href link and collapsible header. The problem is, it collapse the parent when I click the the child accordion. Are there any workaround?
2
votes
2 answers

Spring JPA, Hibernate fetch PK or Ids only from other entities

I have three entities as below: Parent: @Setter @Getter @Entity public class Parent { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String parentName; @OneToMany(mappedBy = "parent", cascade =…
2
votes
1 answer

Codeigniter: Multilevel model extends not working. Getting error "Class not found"

I am trying to apply multilevel extends in models. See my below code. I have one model "Order", which extends CI's core model Class Order extends CI_Model { function __construct() { parent::__construct(); } } Now I am creating new…
Dhara
  • 1,431
  • 4
  • 29
  • 47
2
votes
0 answers

Expand the third level slow in a three-level expandable list view because the 3rd level have to be totally loaded regardless of the view port

I started a three level expandable list view base on ngocchung's project: https://github.com/ngocchung/ThreeLevelExpListView Everything works fine, except that it's rather slow when I expand a child. After I checked the print logs, I found…
Wayne
  • 21
  • 2