# Chapter6 Folder # myCollections.py ''' Dimensional Data > pandas Module Array of Data # Java Array[List] List 1 Dim (col) Series y 2 Dim (row, col) DataFrame x,y 3 Dim pivot1 (row,col) z > x,y 4 Dim p2,p1 (row,col) a > z > x,y 5 Dim p3,p2,p1 (row,col) b> a > z > x,y 6 Dim 7 Dim Super Tuple (1,2,3,4,5,6,AnotherTuple(1,2,3,4,5,6,7)) Collection Class: value for x in ys 1. indexed ? 2. change ? R or R/W do I need to mutate the object? 3. duplicates ? 4. sort ? 5. singular value in nature or map? key:value List [brackets] sep[,] example firstNames = ['Bob','Joe','Mary'] indexed index range 0-2 sortable length (3) duplicates OK ['Bob','Joe','Mary'] change? Yes append() ['Bob','Joe','Mary'] > append 'Bob' ['Bob','Joe','Mary','Bob'] > update(el[0]'Robert') ['Robert','Joe'[1],'Mary','Bob'] > pop("delete"[1]) 4 els to 3 els ['Robert','Mary','Bob'] Tuple (round brackets) (,) example firstNames = ('Bob','Joe','Mary') IMMUTABLE > CAN NOT CHANGE NO APPEND,UPDATE,POP Not sortable > positional by nature arg1,arg2,arg3 duplicates OK Set {braces} {,} example firstNames = {'Bob','Joe','Mary'} No duplicates (No indexing, No sorting) 'Bob','Joe','Mary','Bob' > {} {'Joe','Bob','Mary'} stdout {'Bob','Mary','Joe'} stdout 9 variations BUT no duplicates Dictionary {braces} {'keyName': value, 'keyName2':value} '''