How to convert Matlab code to python? Request for make correction. #325
Unanswered
rasheed2063
asked this question in
Q&A
Replies: 1 comment
-
`
XY_ALL= Append_Mat; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add 2 columns in the original exel datasheet which has 19 columns and 132 rows
First, I need to add one additional column by the name of i_demand in which the values are saved as per the condition below.` if censored column==0
if the censored column (column-18) is equal to 0, then add rows for which all values remain the same except the i_demand value is put equal to 0.01 upto the point up to 0.15 with increment of 0.01
Similarly, the second additional column (FailSur), should be filled such that if i_demand<= drift, than put 1 else 0. if censored column==1
if the censored column (column-18) is equal to 0, then add rows for which all values remain the same except the i_demand value is put equal to 0.01 upto the point where the i_demand is less than drift (column_19)
Similarly, the second additional column (FailSur), should be filled such that if i_demand<= drift, than put 1 else 0. I am unable to append the rows, i have develped the matlab code and it works fine, i want to get the results as per the matlab code attached
`_
<img width="417


" alt="Matlab_code" src="https://user-images.githubusercontent.com/83563415/204904975-91612f79-f2de-4acb-8dbe-4bc4e253d284.PNG">
Beta Was this translation helpful? Give feedback.
All reactions