Questions tagged [nested]
This tag relates to any of various nested entities or operations in programming.
15,402
questions
0
votes
2
answers
17
views
Excel Function Counting Cells with Criteria
I new at using Excel and need help. I have a sheet that contains operations and headers that represent names but for confidentiality it is letters. What I am trying to do is find the max,min within ...
0
votes
0
answers
14
views
How to iterate through a nested dictionary into a Schemdraw circuit
I'm trying to iterate through a nested dictionary into an integrated circuit with schemdraw but the values overlap each other in the final drawing instead of creating new entries on the integrated ...
0
votes
0
answers
11
views
how to create document using nested mongodb schema?
I'm trying to create a new document using javascript for mongoDB database, and add values to deeply nested properties in the schema. Specifically i'm trying to add values to the taskItem, highlight, ...
0
votes
0
answers
13
views
Extract 2 levels nested json array align with another column Presto
Well the solution how to extract a json array of any depth is pretty clear explained in Extract complex nested JSON array in Presto.
But it is not clear for me how to align this extract with one or ...
0
votes
1
answer
24
views
Find replace value in nested dictionary
I have a nested dictionary like this
{ "car1": {"engine": "+", "paint": "0", "transmission": "-"}
"car2": {"engine&...
0
votes
0
answers
12
views
How to get data in Retrofit from nested JSON array using view binding android
Hi Every one will you please help me to fatch data from nested JSON array in recycler view using retrofit from starting to end thankyou
1
vote
0
answers
42
views
nesting data in binomial GLM
I have assessed the presence or not of deer in different filedtype on 2 zone during 3 month.
for each month i have looked a list of the same fields for 4 nights for both zone. So 8 nights in total (4 ...
-1
votes
0
answers
32
views
Is it possible to use Regex on a nested SQL query? [closed]
newbie here looking for some advice.
I am using this query:
$query = "Select r.status, (select count(*)
from table_res
where contact_email = r.contact_email) total_res
...
To match records ...
-2
votes
0
answers
19
views
Strange assign behavior on Python nested dictionary [duplicate]
I am trying to create a nested dictionary by
nested_dictionary = dict.fromkeys(["best", "second_best"], {})
When I try to assign a value to a specific item inside the nested ...
-1
votes
0
answers
23
views
Angular nested scss is not being compiled inside @import-ed files
Situation:
I have one main scss file (styles.scss) and few @import-ed scss files in it (main-app.scss, main-site.scss, ...)
Issue:
The main (styles.scss) file does compile and work well. Also the ...
-2
votes
0
answers
9
views
Loops question about the number to make triangle
Create function print_number_triangle(n), in which n is an integer larger than 0. The function will print n lines of integers, and the i-th line(i=1,2,...,n) has i integers from 1 to i(1, 2, ..., i).
...
2
votes
2
answers
42
views
Iterate through nested dicts, retaining key names, in Ansible
I have a data structure that looks like this:
all_vms:
clusterA:
group1:
- vm-01
- vm-02
group2:
- vm-03
- vm-04
clusterB:
group1:
- vm-05
- vm-06
...
-1
votes
1
answer
24
views
Nested dictionary to Dataframe in the most efficient way possible
I have a nested dictionary like this one:
my_dict[user_profile][user_id][level] = [[9999, 'Heavy Purchaser', 340, 'Star_chest', 999, 1000],
[9999, 'Heavy Purchaser', 340, 'Star_chest', 998, 5],
[...
0
votes
2
answers
52
views
How to create a nested list with parent and children?
I want to create a list of Items with parent and children. I have already prepared the data in a sqlite file:
So I want to read this data (I can read data like var subjectnames = await db....
1
vote
2
answers
22
views
Nested Dictionaries - Grab top-level keys where specified field in sub-dictionaries satisfies criteria
This is a simple question but one which I'm having trouble finding an answer to. Data example:
nested = {
"Moli": {
"Buy": 75,
"Sell": 53,
&...
1
vote
1
answer
31
views
Problems trying to create a data frame from a nested json
I'm trying to split a json response in pandas into different columns, so far I have this but I don't find an effective way how to do it, I already tried several solutions but I can't separate the ...
-8
votes
1
answer
41
views
I don't know why it is not going inside the "if" [closed]
#getting data
check=tempo.find_one({"_id":"Priti"})
#checking all fields have value or not
try:
if check["s_id"]:
print("send_id okay")
if ...
-2
votes
0
answers
24
views
Getting values from a dictionary comprised of only nested dictionaries
I have a dictionary that is comprised of only nested dictionaries. It is formatted like this:
{{'Key': Value, 'Key1': Value1}, {'Key': Value2, 'Key1': Value3}}
I currently have not found a way to ...
0
votes
0
answers
20
views
Nested N level grid react
I am trying to implement N-level nested hierarchy in Kendo UI Grid using react, can anyone tell me how to implement N-level nested Grid using a Specific Data in react?
0
votes
0
answers
7
views
Nested For Each Statement: Identifying Key words from Range within a Range: VBA Code
I would be so grateful for some help with this.
I have 4 Sheets that contain data that i am trying to write a code for.
MessagesSheet (Which is named "replies" followed by "date" ...
0
votes
0
answers
34
views
lua nested for loop and table.insert creating multiple entries
Still learning here, so most likely there's a less complicated way to achieve my goals. This is a snippet I pulled from my code that 90% works as intended, but I'm failing on my last step.
inv = {}...
0
votes
0
answers
27
views
How can I create a JSON Schema with unknown properties? [duplicate]
I'm writing a JSON schema structure to validate an output JSON from various API's I'm using.
I have the following JSON structure:
"Stocks": {
"description": "some stock ...
1
vote
2
answers
51
views
How to scrape out all of the items in dictionary - Python
I'm working on a 'bookmarks' related app. I have a dictionary data that contains all of the bookmarks from the browser. The input looks like this:
data = {
"bookmarks_tab": {
'...
0
votes
1
answer
28
views
how to query for values in a deep nested json array in Postresql?
I have a column of json objects (jsonb type) in Posgresql in this format:
[ {"qos1": [ {
"country_id" : [{"id":"IT",...}, {"id":"FR",...
0
votes
0
answers
17
views
show react bottom tabs navigator on other pages
I have a StackNavigator looking like this:
<AppStack.Navigator>
<AppStack.Screen name={'Main'} component={TabNavigator} options={{headerShown: false}} />
<AppStack.Screen ...
0
votes
2
answers
51
views
How to adding validation in nested array with different FormGroup in angular
I have a nested array item list. I would like to add validation in "Apple Phone (If applicable)" (On the top) as required field if some items selected "Apple" in "Electronic ...
0
votes
0
answers
9
views
nested markdown pages in typescript nextjs website
I've a problem to get a nested page in my nextjs website.
Here my folder structure :
- _post
- services
- folder 1
- .MD file
- .MD file2
Here my page structure :
- page
- services
- [slug]....
-2
votes
0
answers
50
views
How to create an instance of private nested class with parameters using Expression [closed]
Given the class below (excerpt from Xamarin.Forms Grid class):
public class Grid {
...
private class public GridStructure(Grid grid, double width, double height, bool requestSize = false) {
...
1
vote
1
answer
36
views
Compute mean over specific levels of factor in R
I feel like this should not be as difficult as it has been for me, so I have resorted to the mass intelligence that is StackOverflow. Thanks for helping!!
I have the following data:
This is just an ...
1
vote
1
answer
28
views
How to add validation in nested array with different FormGroup?
I have a complex array. I would like to add validation in "Apple Phone" as required field if the nested array selected "Apple" in "Electronic device". The problem is that ...
1
vote
3
answers
44
views
Splitting a nested dictionary into a list of single-key paths
So let's say I have a dictionary:
{"a": {"b": 1,
"c": 2,
"d": {"e": 3,
"f": 4,
}
}
"g&...
0
votes
1
answer
63
views
I'm trying to reduce ten columns of Excel formulas into one cell with one large, nested command if possible
Weights
I have built a tab in an Excel spreadsheet that uses base data from 6 columns and then formulas in 9 additional columns that determine the final result in another column, which then gets ...
0
votes
4
answers
55
views
how to create a nested structure in c like in the body of the query?
//Contains the solution taking all answers to consideration.
typedef struct{
struct address{
int row0[10], row1[5];
} addr;
int * map[2];
}registers;
registers ...
0
votes
0
answers
25
views
Data from nested DTOs in NestJS are not fetched and not visible
I'm new in NestJS.
I'd like to build DTO with nested DTO (array). The issue is that the array's data(from ParentsArray) is not fetched. I don't see it while debugging. Any help is appriciated!
In ...
0
votes
0
answers
31
views
How do i perform this a function within a function in OOP and avoid this error? NameError: name 'function_i_use_often_within_others' is not defined [duplicate]
I have a function in a class that needs to be called several times in various other functions. It also has to be called independently. I'm getting this error: NameError: name '...
-1
votes
0
answers
4
views
API Response is a Nested Objects in Reactjs [duplicate]
I am getting a response from my API and I want to set response in an array of object. Here is generally what the response looks like:
{
"groups":[
{
group:{
GroupName:"Admin&...
1
vote
1
answer
25
views
how to use variables to read in nested json
I want to read in a nested json like
"Experiment"{
"rats"{
"animal":[1,2,3,4]
}
"dogs"{
"animal":...
0
votes
1
answer
34
views
Nested Classes with Template
I'm having issues using a nested class with a template. The first snippet is provided, I just have to implement it.
template <typename T>
class a {
public:
class b {
public:
...
0
votes
1
answer
15
views
How to write a nested dictionary to a csv with newlines such that each line contains a key and value
I need to write a nested dictionary to a csv file, I have some functions that work well for a non-nested dict but I keep running into problems with the nested dict because I don't understand what I'm ...
0
votes
1
answer
27
views
TYPO3 - May I include FlexForm XML file like nested?
Is there a solution to include XML file into T3DataStructure, like nested tabs?
This is what i have tried but didn't works.
What I want is, when I press Add Links button, to get Link.xml file ...
0
votes
1
answer
34
views
Hacker rank List Prepare
This is my Code and it gives me this error message. Why?
if __name__ == '__main__':
l=[]
N = int(input())
for z in range(N):
x=input().split()
if (x[0]=="insert"):...
-5
votes
1
answer
45
views
Nested Loops - What does this do? [closed]
So I made this code with the mishmash of other codes from others right, and I am a person who, even when copied, tries to understand what the code is doing so I can understand what it does, the ...
0
votes
0
answers
19
views
Two formulas in one cell, if result >5, then "URGENT", if not, result of formula #1
Im trying to get a formula where if the output of another formula in the same cell is over 5, then type "URGENT". If the value is LESS THAN 5, then output the result in number format
In cell ...
0
votes
1
answer
23
views
Javascript 2D array - best way to initialize with values
I'm trying to create a 2D array visited to show where the code has already visited in the grid. The way I have it now is that each row in visited is a shallow copy. Changing the value in one row, ...
0
votes
1
answer
45
views
Nested json extraction into postgres table
I have used following query to parse and store json elements into table 'pl'
'test' table is used to store raw json.
select
each_attribute ->> 'id' id,
each_attribute -...
2
votes
3
answers
44
views
Ansible: Change default values of nested vars
I have written a role to create users. Now I wanted to modify the role to also give the option to remove users. What looked very simple in the beginning is now giving me constant headaches.
Here is my ...
0
votes
0
answers
17
views
How to Create nested input field that have child input as well and submit the form in React?
I have a form of Color That users can dynamically increase and decrease on the button Click. This color button has child input size i.e Yellow color can have size 14, 15, or any that is also dynamic. ...
1
vote
1
answer
43
views
React dynamic nested form input
Im a newbie in React and Im creating a simple form that sends data to DB. I made it work almost as I wanted, the only problem is that I dont know how to update the state which has an array inside.
The ...
0
votes
1
answer
15
views
In pgAdmin for postgreSQL, I am unable to query for MAXimum rows from another query that SUMs up and sorts rows. Working with 1 table
This is the initial query that groups, sums up, and orders the busiest day of the week per month and year for a small retail store:
SELECT year, month, day_of_week, SUM(total_revenue)
FROM vip_sales
...
0
votes
0
answers
22
views
Nested dict loop
I just wrote some code the should simulate parcel orders for a series of 90 day,
This part makes csv files for all order days:
Period = list(range(1,90))
for item in Preiod:
"some code to ...