Problem in defining multidimensional array matrix and regression

Ben Finney ben+python at benfinney.id.au
Sun Nov 19 13:58:59 EST 2017


shalu.ashu50 at gmail.com writes:

> I already did that

Peter's suggestion was quite different from the code you first
presented. So, I am not understanding what you mean by “I already did
that”.

Can you:

* Reply with your responses interleaved with the quote text
  <URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style>,
  so that your message reads like a proper discussion. (This message is
  an example of that.)

* Show the code you wrote where you “already did that”, and say what
  happened different from what you expected.

> but now I need to make a multi-dimensional array for reading all
> variables (5 in this case) at one x-axis

>From what I can tell, that's exactly what Peter's example shows: you get
a multi-dimensional array, with all the named variables “RF”, “P1”,
“P2”, and so on, addressible by name.

That should allow you to directly operate on that multi-dimensional
array by naming the variables.

> I am not getting how to bring all variables at one axis (e.g. at
> x-axis)?

I don't understand what you mean by that; all the variables are present
in the array.

-- 
 \          “I don't like country music, but I don't mean to denigrate |
  `\          those who do. And for the people who like country music, |
_o__)                        denigrate means ‘put down’.” —Bob Newhart |
Ben Finney




More information about the Python-list mailing list