Tag: list

65 votes
9 answers
1.6K views
Combine a list of data frames into one data frame by row

I have code that at one place ends up with a list of data frames which I really want to convert to a single bi

avatar
Emilia
0 1 0 9
asked 07 September, 2021
67 votes
24 answers
2.5K views
Convert a list to a data frame

I have a nested list of data. Its length is 132 and each item is a list of length 20. Is there a quick way to

avatar
Shanita
0 1 0 9
asked 07 September, 2021
49 votes
12 answers
2.6K views
The difference between bracket [ ] and double bracket [[ ]] for accessing the elements of a list or dataframe

R provides two different methods for accessing the elements of a list or data.frame: [] and [[]]. What is the

avatar
Xavier
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
2.3K views
NativeScript-Vue rendering RadListView very slow under android and freeze the UI

I have a nativescript-vue app with the RadListView component to display data to the user. Each row of the list

avatar
Tuan
0 1 0 9
asked 07 September, 2021
57 votes
1 answers
356 views
ListView.itemTemplate and Images in NativeScript

I am trying to build a Contacts List type POC for NativeScript. And I would like to have an image and name in

avatar
Stacia
0 1 0 9
asked 07 September, 2021
55 votes
11 answers
1.2K views
Remove duplicates in the list using linq

I have a class Items with properties (Id, Name, Code, Price). The List of Items is populated with duplicated

avatar
Winford
0 1 0 9
asked 07 September, 2021
54 votes
5 answers
825 views
Flatten List in LINQ

I have a LINQ query which returns IEnumerable<List<int>> but i want to return only List<int>

avatar
Dario
0 1 0 9
asked 07 September, 2021
52 votes
11 answers
2.2K views
C# LINQ find duplicates in List

Using LINQ, from a List<int>, how can I retrieve a list that contains entries repeated more than once an

avatar
Cortez
0 1 0 9
asked 07 September, 2021
58 votes
14 answers
538 views
Using LINQ to remove elements from a List<T>

Say that I have LINQ query such as: var authors = from x in authorsList where x.firstname == "B

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
57 votes
10 answers
994 views
IEnumerable vs List - What to Use? How do they work?

I have some doubts over how Enumerators work, and LINQ. Consider these two simple selects: List<Animal>

avatar
Eddie
0 1 0 9
asked 07 September, 2021
55 votes
17 answers
1.5K views
How to find all occurrences of an element in a list

index() will give the first occurrence of an item in a list. Is there a neat trick which returns all indices i

avatar
Shanita
0 1 0 9
asked 07 September, 2021
65 votes
5 answers
2.6K views
What are the advantages of NumPy over regular Python lists?

What are the advantages of NumPy over regular Python lists? I have approximately 100 financial markets series

avatar
Emilia
0 1 0 9
asked 07 September, 2021
54 votes
14 answers
328 views
Xamarin.Forms ListView: Set the highlight color of a tapped item

Using Xamarin.Forms, how can I define the highlight/background color of a selected/tapped ListView item? (My

avatar
Cortez
0 1 0 9
asked 07 September, 2021
50 votes
6 answers
1.5K views
"No Content-Security-Policy meta tag found." error in my phonegap application

After update Cordova 5.0 in my system, I create new applications. When I tested my application on a device tha

avatar
Scot
0 1 0 9
asked 07 September, 2021
56 votes
12 answers
793 views
Check if a string contains an element from a list (of strings)

For the following block of code: For I = 0 To listOfStrings.Count - 1 If myString.Contains(lstOfStrings.I

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
58 votes
26 answers
2.7K views
How do you get a list of the names of all files present in a directory in Node.js?

I'm trying to get a list of the names of all the files present in a directory using Node.js. I want outp

avatar
Shantay
0 1 0 9
asked 07 September, 2021
56 votes
18 answers
2.3K views
How to get the last element of a list?

In Python, how do you get the last element of a list?

avatar
Margo
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
1.2K views
How do you split a list into evenly sized chunks?

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There a

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
52 votes
22 answers
1.7K views
List changes unexpectedly after assignment. Why is this and how can I prevent it?

While using new_list = my_list, any modifications to new_list changes my_list every time. Why is this, and how

avatar
Elicia
0 1 0 9
asked 07 September, 2021
50 votes
29 answers
3K views
How do I concatenate two lists in Python?

How do I concatenate two lists in Python? Example: listone = [1, 2, 3] listtwo = [4, 5, 6] Expected outcom

avatar
Tana
0 1 0 9
asked 07 September, 2021