Skip to main content
0 votes
0 answers
20 views

Why are lists performing faster than numpy arrays in my n-body integrator? [closed]

I made a simple n-body integrator using Euler's method in python. I didn't know about numpy arrays, so I treated each vector as a list of x, y, and z variables. I even made my own magnitude() function ...
stookalacka's user avatar
-4 votes
1 answer
43 views

Python list of Cities in European Country [closed]

I'm going out on a limb here but is there a library that can see if a city is in a country? Without having to create your own dictionary? I'm searching about and can see pycity but that is more for US ...
Dave's user avatar
  • 3
1 vote
0 answers
12 views

Esp8266 randomly resets after a lot of time (9 hours)

I have esp8266, it connected to 3 temperature sensors. I put all data in list (temperature and time). After 9 hour of work esp8266 just refresh everything and all data get lost. I tried check my code, ...
Yaroslav M.O's user avatar
-3 votes
1 answer
50 views

How can I make a list like this? [closed]

I have some lists like these list_0 = [1, 2, 3] list_1 = [4, 5, 6] list_2 = [7, 8, 9] I wanted to access all numbers in the lists just in one list without having to combine them. For example I don't ...
sajad.fnt's user avatar
0 votes
2 answers
58 views

Out of Memory Exception throwing when add one million records to a list before Saving using EF

Trying to save one million records into a SQL server table using EF Core. First reading the one million record from a staging table and store into a List then using the EF Core's AddRangeAsync ...
Able's user avatar
  • 3,892
0 votes
1 answer
34 views

Iterating and updating a column using a list

originallist = df['Customer'].tolist() I have an list of customers. Within these customers, i have some translations to do which i have done. In other words, i iterate through the original list of ...
Dave's user avatar
  • 3
1 vote
2 answers
62 views

Pandas create % and # distribution list in descending order for each group

I have a pandas dataframe like as below data = { 'cust_id': ['abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc'], 'product_id': [12, 12, 12, 12, 12, 12, 12, 12, 12, 12], '...
The Great's user avatar
  • 7,573
0 votes
1 answer
54 views

Is there a better method to replace values in a Python list? [closed]

I am downloading aurora forecast data from the NOAA SWPC. The data is available as JSON and part of it is a list of lists (?) containing lon, lat and value like this: [ [0,-90,4], [0,-89,0], ....
Stefan Gofferje's user avatar
0 votes
0 answers
6 views

how to filter out error table in a list power query

Can I request your help? I have a list which contains tables and some are showing as error. I am trying to filter the list to exclude error items but I can't figure out how. Appreciate any help you ...
Andy's user avatar
  • 1
0 votes
1 answer
47 views

Comparing dictionary of countries with a column of countries [closed]

I have a dictionary/country list which i took from pycountry (list(pycountry.countries) I am importing a column from excel called CountryNames i thought by creating 2 for loops, i could then compare ...
Dave's user avatar
  • 3
0 votes
0 answers
30 views

Nested Lists (in R): Assign a value to a nested list from a list with a single value and the same structure [duplicate]

Suppose there are two lists; my_List_B will always have a single element that either will be present in my_List_A or, is to be added to my_List_A Is there a simple way to change my_List_A with the ...
acombo's user avatar
  • 51
1 vote
4 answers
82 views

How to check if an input is a specific string when putting into a list

I'm trying to have the user input a number, that input is checked to see if it says "stop", then the number is added to a list. I want it to keep going until you type "stop" and ...
Scott Burkhart's user avatar
0 votes
2 answers
42 views

Changing the Class of Multiple Dataframes' Columns with For Loop in R [duplicate]

I have many dataframes imported from csv files, all having one similar column name: ActivityHour. Its class was imported as character, but I want to change it to date and time with the lubridate ...
John's user avatar
  • 3
4 votes
3 answers
186 views

Filtering a List with other two Lists

Consider the following three example lists: List<string> localPatientsIDs = new List<string> { "1550615", "1688", "1760654", "1940629", "34277&...
fabricioLima's user avatar
0 votes
1 answer
21 views

How to fetch object data from Modal Input to Homepage with Array Function for making Contact List?

I am new in this field, want to learn coding in React native to develop Mobile App. I want to develop one Contact List with React Native In Home page I put one (+) button to toggle / opening of the ...
Prasenjit's user avatar

15 30 50 per page
1
2 3 4 5
9463