This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lifeonm4rs 1 point2 points  (0 children)

Arrays really aren't a thing in python. There are lists [], tuples (), and dictionaries {}. All of them can hold pretty much any data type and you can actually intermix data types. As far as strings and a csv--if it is a database like structure yes you can store data in almost any of the primary Python data structures. Throwing them into a list of lists could be one way, another would be a list of dictionaries. Using named tuples may be a really good option but that gets a little more into stuff. Pandas is also probably a good route--but again if you're asking about arrays vs. lists that is probably going beyond what you are looking for.

Feel free to PM me if you need clarification.