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 7, 2019 in Python by anonymous
• 130 points
170 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,210 points
100 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
40 views
0 votes
1 answer
+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 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 556 views
0 votes
0 answers
+4 votes
6 answers
+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
162 views
+1 vote
1 answer