pandas.Series Operation
Jump to navigation
Jump to search
A pandas.Series Operation is a python-based series data structure operation for a pandas.Series data structure.
- Context:
- It can (typically) involve a pandas.DataFrame Method.
- Example(s)
- Create an empty series:
s = pandas.Series()
.
- Create a prepopulated series:
s = pandas.Series([-3.14, 'a text'])
, with auto-gen column name and index names.s = pandas.Series([-3.14, 'a text'], index=['val1', 'val2'])
- …
trange = pandas.date_range('1/1/2011', periods=72, freq='H')
ts = pandas.Series(numpy.random.randn(len(trange)), index=trange)
- Create an empty series:
- Counter-Example(s):
- See: Array Data Structure.