Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

If I have a python dataframe and I am need to print out the column and row and v

ID: 3795288 • Letter: I

Question

If I have a python dataframe and I am need to print out the column and row and value to a print statement how do I?

Let's say I have the following dataframe

I am trying to print out the "results"....

I need to print it our such that I would get something like the following so that it iterates over every value in the dataframe.

Apple Daily 2

Apple Weekly 5

Apple Yearly 200

Orange Daily 1

Orange Weekly 3

Orange Yearly 100

..

...

....

I am totally drawing a blank and having problems even knowing how to phrase the question properly. I am new to Python but am needing to do this through a dataframe if possible.

EA DAILY W WEEKLY YEARLY Fruit APPLE ORANGE BANANA PEAR 2 1 1 0 200 100 150 40 4 1

Explanation / Answer

# pastebin link: http://pastebin.com/UFuxYYBy

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote