I have an array and need to normalize it in a way that the results will be numbers between 0 and 1. I already normalized the entire array as follows:
C = A / A.max(axis=0)
print(C)
____________________________________________________________________
[[0. 0.05263158 0.1 0.14285714 0.18181818 0.2173913 ]
[0.33333333 0.36842105 0.4 0.42857143 0.45454545 0.47826087]
[0.66666667 0.68421053 0.7 0.71428571 0.72727273 0.73913043]
[1. 1. 1. 1. 1. 1. ]]
But now I have to normalize by column and by line. How can I do that with axis reduction? If there is a better way to what I did, suggest me alterations.
My expected result is two arrays with the values normalized. One considering the columns and the other by the lines
This is my data
A = [[ 0 1 2 3 4 5]
[ 6 7 8 9 10 11]
[12 13 14 15 16 17]
[18 19 20 21 22 23]]