Professional Documents
Culture Documents
Rohit Manna SEM3 PCA2 MSD392 MSC (DA)
Rohit Manna SEM3 PCA2 MSD392 MSC (DA)
Semester: 3rd
c. To display the vehicles which have a speed lesser than 500 and brand as Benz.
"brand": "Toyota",
"speed": 120,
"color": "Blue"
"brand": "Honda",
"speed": 90,
"color": "Red"
"brand": "Benz",
"speed": 250,
"color": "Black"
"brand": "Ford",
"speed": 300,
"color": "Silver"
}
a. To display the vehicles which have a speed greater than 100.
Ans:-
Quary:-
Quary:-
c. To display the vehicles which have a speed lesser than 500 and brand as Benz.
Quary:-
Code:-
import numpy as np
counts = np.bincount(arr)
most_frequent_value = np.argmax(counts)
OutPut:-
3.Write a python program to Remove rows in Numpy array that contains nonnumeric values.
Code:-
import numpy as np
])
def is_numeric_row(row):
return np.all(np.char.isnumeric(row))
print("Original array:")
print(data)
print(numeric_rows)
OutPut:-
THE END