Transcription of DATA TruCTurES ConTinuED Data Analysis with …
{{id}} {{{paragraph}}}
data Analysis with PANDASCHEAT SHEETC reated By: arianne Colton and Sean ChenDATA STruCTurESDATA STruCTurES ConTinuEDSERIES (1D)One-dimensional array-like object containing an array of data (of any NumPy data type) and an associated array of data labels, called its index . If index of data is not specified, then a default one consisting of the integers 0 through N-1 is Series series1 = ([1, 2], index = ['a', 'b'])series1 = (dict1)*Get Series Values by Indexseries1['a'] series1[['b','a']]Get Series Name Attribute(None is default) ** Common Index Values are Addedseries1 + series2 Unique But Unsortedseries2 = () * Can think of Series as a fixed-length, ordered dict.
“Python for Data Analysis” by Wes McKinney • • Pandas † \ • • . •
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}