Select any row from a Dataframe in Pandas | Python
In this article, we will learn how to get the rows from a dataframe as a list, without using the functions like ilic. There are multiple ways to do get the rows as a list from given dataframe. Let’s see them will the help of examples.
[['10/2/2011', 'Music', 10000], ['11/2/2011', 'Poetry', 5000], ['12/2/2011', 'Theatre', 15000], ['13/2/11', 'Comedy', 2000]]
[['10/2/2011', 'Music', 10000], ['11/2/2011', 'Poetry', 5000]]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course