2020欧洲杯手机版注册

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [list]

2020欧洲杯手机版注册The list tag may refer to: a linked list (an ordered set of nodes, each referencing its successor), or a form of dynamic array. Not to be used for HTML lists, use [html-lists] instead.

Filter by
Sorted by
Tagged with
-1
votes
1answer
19 views

How to solve the problem: can't assign to literal (Python)?

For this following code I get the error: can't assign to literalfor i in range(len(stepData)): stepDataLeft = stepData.to_numpy()[i, 0:5] stepDataRight = stepData.to_numpy()[i, 5:10] ...
2
votes
1answer
20 views

Divide a dimensionless number by a number with a unit

I have a list of dimensionless number in python and I am trying to divide it by a number with a unit (the unit is associated via astropy).my_list = [34.567, 34.436, 34.764]plate_scale_arc = 0.04*u....
0
votes
0answers
37 views

sum an excel file with python

I explain my problem to you I want to recover the sum of each absence of an Excel file for each user : My code : The connection to the database : con = mysql.connector.connect(user='root', ...
1
vote
4answers
46 views

print 2 list items on the same line

I have two lists:a=[1, 2, 3, 4, 5]b=[6, 7, 8, 9, 10]I need to print the first 3 items of the list on the same line.The output should look like this:1 62 73 8I have tried this code but it ...
1
vote
1answer
25 views

List of Array of objects to map in java 8

I have a class Person with constructorPerson(Fruit... favoriteFruits) {}And 3 objects (let's say)Person A = new Person(Apple);Person B = new Person(Banana, Papaya);Person C = new Person(...
0
votes
0answers
15 views

List of all Team

I want to display a list of all existing Team, but on the screen I see only the last Team that I added.Team that were created earlier and are in the repository are not shown.teamList.html<!...
2
votes
1answer
46 views

Strange execution times of count()

The code:from timeit import Timerprint(min(Timer('y=x.count(1)',setup='x=[1] * 1000').repeat(number=1000000))) print(min(Timer('y=x.count(0)',setup='x=[1] * 1000').repeat(number=1000000)))The ...
-1
votes
0answers
22 views

How can i create the following code using one HashMap which has a list of keys and list of values ans with json converter

How can i create the following code using one HashMap which has a list of keys and list of values ans with json converter"dataProvider": [{ "country": "USA", "visits": 3025, "color": "#FF0F00"...
-1
votes
0answers
7 views

Styling pdf viewer container on wordpress site

i would like to have the pdfs be hidden initially, and be shown by hover over or click on the text above them (like a dropdown menu) but i'm about clueless how to achieve this?page: http://galgaguta....
0
votes
2answers
23 views

Change a string representation of a list into a numpy array?

I have a string representation of a list, such as the result of str([[1,2,3],[4,5,6]]); '[[1, 2, 3], [4, 5, 6]]'. How can I convert this to a numpy array? I have tried the below code.import numpy as ...
1
vote
1answer
42 views

Merge a data.table and a list

I want to add a list into my data.table. Lets consider this data.table: dt = data.table(id = 1:3)lst <- list()lst[[2]] <- cbind(a=10:12, b=5:7)dt[-nrow(dt), lst:=lst]dt# id ...
-4
votes
3answers
45 views

How to call the minimum value in list 1 and respective value in list 2 in PYTHON [closed]

For example i have a two list as below1 102 203 54 85 306 25How to call the minimum value in list2 which is 5 as we can see and respective list1 value which is 3 as we can simply see.but how ...
-1
votes
0answers
32 views

How to solve the KeyError : 'A' by Python

I am new person to python. I have tried to solve some optimization problem. here is the code.when I run the code key Error occurred. it says about the keyError: 'A' issue. please give me a way to get ...
0
votes
3answers
43 views

retrieve all the elements of a column in a list

I explain my problem i try to recover all the content of a column from a text file in a list.My text file looks like : o_anl;Antoine;Legrando_lof;Loic;Formont_boga;Bruno;Gaucheto_geb;Guillaume;...
1
vote
1answer
21 views

Check if values of a column is in another column array in a pandas dataframe

I have the following dataframe:Person Number Responsibility Type Roles0 10000170 DSC HR Business Partner [DSC Employee Custom, DSC HR Business Partner,...1 10000479 DSC HR Business ...

15 30 50 per page