Python When To Use Pandas Series, Numpy Ndarrays Or Simply Python Dictionaries Code Example

Snippet 1
  # A useful rule of thumb is to use the simplest data structure that still
# satisfies your needs. If we rank the data structures from most simple
# to least simple, it usually ends up like this:

1. Dictionaries / lists
2. Numpy arrays
3. Pandas series / dataframes

# See source for more details