Creating a Pandas DataFrame From Lists | GeeksforGeeks

preview_player
Показать описание
In this video, we're going to discuss how to create a Pandas DataFrame from Lists with the help of live examples. Pandas DataFrame is a 2-dimensional labeled data structure with columns of potentially different types and it can be considered as the most commonly used pandas object. Now, let's get started.

00:00 Let's Start
00:18 Creating a Pandas DataFrame Using a Simple List
01:39 Creating a Pandas DataFrame Using List with Index and Column Names
02:35 Creating a Pandas DataFrame Using zip()
04:31 Creating a Pandas DataFrame Using Multi-Dimensional List
06:13 Creating a Pandas DataFrame Using Dictionary of Lists
07:45 Closing Notes

Check Out the Related Articles:

This video is contributed by Akshit Madan.
Please Like, Comment, and Share the Video with your friends.

#python​​ #pandas​​ #dataframe​​ #datascience​​ #pythonpandas​​ #eda​​

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on our Social Media Handles -

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

What if you have 3 list?
I want to do something like this. the data was taken with webscrapping, so i have 3 lists. I have a column of 1 type of fruit, another column of price and another of price per kg. I would like it to only write or save to a new array, list or dictionary if the fruit (with its price1 and price per kg) includes a specific word, for example fruit in 'box' or 'bulk'. do you know how i can do it? Example:
Fruit in a box 600gr 10(usd) 5(usd)
Fruit bulk 900gr 11(usd) 6(usd)
But if its 'fruit shampoo' dont be writen or save in excel column (it has not the word box or bulk).... or at least be written and the deleted that row

tigreonice