Skip to main content

All Questions

Tagged with
2 votes
3 answers
68 views

The problem of mapping in creating a Generic Method

This Is My Models : public class Result1 { public string Price { get; set; } public string Id { get; set; } } public class Result2 { public string firstName { get; set; ...
Ya YA's user avatar
  • 31
-1 votes
2 answers
55 views

Looping through file with lists is returning "none" with mapping but works when I test manually [duplicate]

first time attempting Advent of Code with python and running into an issue with my loop. I've successfully been able to take the input file and break it into lists as shown below for the output.txt. I'...
justFF's user avatar
  • 1
0 votes
1 answer
75 views

deparse() and paste() not working as expected when mapping over a list

This is a very similar (but slightly different) question to this: Paste element name onto columns in each list element So I understand if this gets flagged as a duplicate. I am trying to use deparse() ...
fitz_meyer's user avatar
2 votes
0 answers
27 views

R Function to create "blended" list by joining on matching elements?

Say I have a list of int vectors that looks like: 1: {1,4,5} 2:{2} 3:{2,3} 4:{4,5} 5:{5} I want to receive a version of this list where all common items are shared between all members, like so: 1: {1,...
ABuist's user avatar
  • 31
0 votes
3 answers
45 views

Having trouble looping over potential outcomes in a list

I have the following code that loops over each sublist in the existing list. So it adds on the last element of each and maps it from A-B over each sub list. existing_list = [[1, 2, 3, 4], [2, 3, 4]] A ...
iceman's user avatar
  • 11
0 votes
1 answer
621 views

how to define a two field list on pyarrow.schema

I have a list object with this data: [ { "id": 7654, "account_id": [ 17, "100.01.001 Cash" ] } ] and I want to transfer this data into a ...
nsr_2324's user avatar
1 vote
2 answers
81 views

Check if a record exist in a list with no explicit match

What I mean is for example I have this list of language objects with Id and Code : { Id = 1, Code = "N" }, { Id = 2, Code = "E" }, { Id = 3, Code = "D" } But I receive a ...
user7849697's user avatar
-2 votes
2 answers
535 views

How to return each word and its respective length from a list

I am trying to find the length of all the words in a string and return a list with each word and its lengths next to it. Here is an example: A string of "hello python" would return ["...
Lauren's user avatar
  • 5
0 votes
2 answers
517 views

How can i searching from Map<String, List<dynamic>> Flutter

i'm try to make Search Bar and Searching from Map<String, List> but i got error like this --> "A value of type 'Iterable<MapEntry<String, List>>' can't be assigned to a ...
Preemoz's user avatar
0 votes
1 answer
505 views

Create objects from a list of IDs in a simple way

Is there a way to simplify the following with a stream or something? final List<Fruit> fruits = new ArrayList<>(fruitIds.size()); for (final long id : fruitIds) { final var fruit = new ...
MikelAlejoBR's user avatar
1 vote
1 answer
218 views

How to match the multiple values in a list of list with another list of list with the same amount of values then put into a df?

I have two lists of lists both with the same amount of multiple values. I want to match these values and then put them into a dataframe. Example of the two lists: Reason_lst = [['Too cool', 'Too sad', ...
Astro_raf's user avatar
0 votes
1 answer
21 views

How to have a value in a dataframe repeat so that the values in a new column are mapped to it [duplicate]

I have three lists for a dataframe. I am trying to map the multiple values in one list to one value in another list to then have the value repeat in the dataframe. Here is my list and expected out: ...
Astro_raf's user avatar
1 vote
2 answers
238 views

How to map two list of list together to one value in my dataframe?

I have two lists of lists that I am trying to map to another value in my dataframe. Example of the list: Potential_Cond_lst = [['Any Muscle Dis'], ['Type 2 fun','My happy place','Any Endo','Any Muscle ...
Astro_raf's user avatar
0 votes
2 answers
471 views

type '(dynamic) => ProductModel' is not a subtype of type '(String, dynamic) => MapEntry<dynamic, dynamic>' of 'transform'

Tried almost every solution. No luck :( Future<List<ProductModel>> getProducts() async { try { final response = await apiService.sendRequest.get('/product'); if (response....
krishnaacharyaa's user avatar
0 votes
1 answer
377 views

Is there any way I could map Routes in Flutter?

I tried creating a list of items to map out on my app, and I tried inserting a named route to each item for it's page destination. And when I tried to use Navigator.pushNamed(context, listName....
Bryant Anthony's user avatar

15 30 50 per page
1
2 3 4 5
13