DATA MUNGING
DATA CLEANING PYTHON
MACHINE LEARNING RECIPES
PANDAS CHEATSHEET
ALL TAGS
# How to find Maximum and Minimum values in a Matrix?

# How to find Maximum and Minimum values in a Matrix?

This recipe helps you find Maximum and Minimum values in a Matrix

Have you ever tried to find maximum and minimum value in matrix? So lets see how we can do this.

So this is the recipe on how we can find Maximum and Minimum values in a Matrix.

```
import numpy as np
```

We have only imported numpy which is needed.

We have created a 4 x 4 matrix using array.
```
matrix_101 = np.array([[10, 11, 12, 23],
[4, 5, 6, 25],
[7, 8, 9, 28],
[1, 2, 3, 41]])
```

We can find the maximum and minimum values by using the function max and min respectively. We can also pass axis as a parameter which will help us to find maximum or minimum values of every rows and column.
```
print(np.max(matrix_101))
print(); print(np.min(matrix_101))
print(np.max(matrix_101, axis=0))
print(); print(np.max(matrix_101, axis=1))
```

So the output comes as

41 1 [10 11 12 41] [23 25 28 41]

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

This data science in python project predicts if a loan should be given to an applicant or not. We predict if the customer is eligible for loan based on several factors like credit score and past history.

Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

In this machine learning project, we will use binary leaf images and extracted features, including shape, margin, and texture to accurately identify plant species using different benchmark classification techniques.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.

In this project you will use Python to implement various machine learning methods( RNN, LSTM, GRU) for fake news classification.

Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.