Question: I need a function in python that writes the restaurant name or the number that corresponds to the column but with a condition to skip

I need a function in python that writes the restaurant name or the number that corresponds to the column but with a condition to skip the one that contains zeros

example

this is the original data set

I need a function in python that writes the restaurant name or

and this is what I want it to look like

we can see the first row with only 2 items the first and the third

it's ok if the name or the column number etc...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!