![]() column level, as we’ve been exploring so far. Lists of lists behave a little differently, as you’re essentially adding data at, what appears to be, a row level, rather than. For example, a list of lists may look like this: data =, ] They are also often called multi-dimensional lists. Lists of lists are simply lists that contain other lists. There may be many times you encounter lists of lists, such as when you’re working with web scraping data. In the next section, you’ll learn how to turn lists of lists into a Pandas dataframe! Create a Pandas Dataframe from a List of Lists Want to learn more about the zip() function? Check out my in-depth tutorial on zipping two or more lists in Python and pick up some fun tips and tricks along the way!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |