Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about sub-array

Read more about sub-array

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - sub-array

how to get elements in sub-array of a numpy array in python

I'm getting in trouble with reading the entries of a sub-array of a numpy array, in python. I've got something like this: a = np.array([ [453,254,[1,2,3,4,5]], [743,251,[10,20,30,40,50]], [127,393,[11...
test-img

urgeo

python

numpy

sub-array

Votes: 0

Answers: 2

Latest Answer

You can do something like this: np.mean([x[0] for x in a[:,2]]) np.mean([x[1] for x in a[:,2]]) ...
test-img

sagi

why is it showing time limit exceeded?

Given an array of positive integers nums and a positive integer target, return the minimal length of a contiguous subarray [numsl, numsl+1, ..., numsr-1, numsr] of which the sum is greater than or equ...
test-img

Prakhar Agrawal

c++

size

minimum

sub-array

Votes: 0

Answers: 0

Sub-arrays can't be changed individually when created at the same time

I created an array with two sub-arrays containing zeros: a=[[0]*3]*2 This looks like so: [[0, 0, 0], [0, 0, 0]] I try to modify the first value of the first sub-array like this: a[0][0] = 1 Then th...
test-img

LukasFun

python

arrays

sub-array

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved