array tag

224 questions


1 answers
119 views
0
Isn't there a sumif, countif function like Excel in the Numpy array?

I am looking for sumif, countif functions like calculating the python3 array Excel.If you know this, please give us your advice.

2 years ago

1 answers
123 views
0
How to Choose a Multi-Dimensional Array in Python

I am using Python 3.6.when np.array gives the array and range belowarr[a][b][c][d]a--1 to 72b--0 to 11c--0 to 9d--0 to 4500I'd like to substitute arr1 in this way.arr1 = arr [All (1-72)] [One from 12]...

2 years ago

2 answers
106 views
0
Ruby Array Operations Questions

We have the following data that we grouped by date in Ruby.{[2021, 12, 28, 1]:2, [2021, 12, 28, 2]:2, [2021, 12, 28, 3]:2, [2021, 12, 28, 4]:4, [2021, 12, 28, 7]:2, [2021, 12, 28, 5]:1}I would like to...

2 years ago

2 answers
58 views
0
About JavaScript console.log

As for js, I am not good at taking out values as I expected when displaying objects and arrays in console.log.For example, if there is an array called test and the following data is displayed in conco...

2 years ago

3 answers
64 views
0
Outputs duplicate count from array

Can I determine how many times it is duplicated from the Swift array and output the number of times it is duplicated?For example, if there is an array called [0,0,0,2,2,3,4,4],0—Three times.1:0 times2...

2 years ago

1 answers
77 views
0
Please let me know if there is a way to get the first address of any line of a two-dimensional array "quickly."

(I was confused about the multiplication time.Please see 774RR's response.)Suppose you have a large array of about 1000 x 1000 (such as an image).iTo get the first address on the line,double lightness...

2 years ago

1 answers
106 views
0
I want to find the standard deviation of the arrangement at once.

I use python and numpy to calculate the standard deviation into an array, but since I use for, it is very slow and troublesome.I would appreciate it if there was a way to find the standard deviation o...

2 years ago

1 answers
76 views
0
prevent duplicate extraction from the array

Sorry for asking you so many questions.I would appreciate it if you could let me know as soon as possible.Could you tell me how to avoid the same card being displayed repeatedly when two players pull ...

2 years ago

1 answers
110 views
0
idea of conditional arrangement

Create a new array from the following two arrays.common_y=[1,2]new_y = [11, 12, 13, 14, 15, 16, 18, 19, 20, 22, 23, 24, 25, 26, 27]If you have a good idea that doesn't work out well, I'd like to ask y...

2 years ago

1 answers
73 views
0
I want picojson to read hierarchical json files

I tried to load the json file with picojson in VisualStudio 2012 C++, but I couldn't load the json file as intended.(The data I want most is the array in the polygonList array in the json file (pointI...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.