How do I use the data of an array after splitting it

+1 vote
import numpy as np
a=[]
for i in range(0,6):
    ele=int(input())
    a.append(ele)
b=np.array(a)
f=np.split(b,2)
print(f)

I need to compare the two arrays now.

How do I proceed further?
Dec 8, 2019 in Python by anonymous
• 130 points
749 views

1 answer to this question.

+1 vote

Hey, You can use 

np.greater(b, f)
np.greater_equal(b, f)
np.less(b, f)
np.less_equal(b, f)
answered Dec 9, 2019 by Payal

Related Questions In Python

0 votes
1 answer

how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

answered Mar 12, 2019 in Python by Mohammad
• 3,230 points
1,231 views
0 votes
1 answer
0 votes
1 answer

How do I convert type of an array in python?

Use the following command to change the ...READ MORE

answered May 24, 2019 in Python by Kishore
1,097 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,466 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,127 views
+1 vote
1 answer

how do i get a optimal cutoff value(directly in the form of numeric) from roc curves?

The optimal CutOff value is the point ...READ MORE

answered Oct 17, 2019 in Python by Saira
3,375 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP