Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python when to use pandas series, numpy ndarrays or simply python dictionaries

# 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pandas #numpy #ndarrays #simply #python #dictionaries
ADD COMMENT
Topic
Name
4+6 =