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

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

Solution

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

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site