Please propose an elegant way to code the below in python : Inputs are : - A Panda Dataframe with 500 columns a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please propose an elegant way to code the below in python : Inputs are : - A Panda Dataframe with 500 columns a

Post by answerhappygod »

Please propose an elegant way to code the below in python :
Inputs are :
- APanda Dataframe with 500 columns and 10 lines, which contains aseries of random integers comprised between 0 and 10000 (included)
- Alist of 10 random integers comprised between 0 and 10000
Output you are looking for is :
- APanda Dataframe with 500 columns and 10 lines, which gives theBoolean true or false depending if the element from the x-th lineis above (true) or below (false) the number which is the x-thelement of the list
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply