Series.to_json()

Series.to_json(path_or_buf=None, orient=None, date_format='epoch', double_precision=10, force_ascii=True, date_unit='ms', default_handler=None, lines=False) [source] Convert the object to a JSON string. Note NaN?s and None will be converted to null and datetime objects will be converted to UNIX timestamps. Parameters: path_or_buf : the path or buffer to write the result string if this is None, return a StringIO of the converted string orient : string Seriesdefault is ?index? allowed val

Series.to_dict()

Series.to_dict() [source] Convert Series to {label -> value} dict Returns: value_dict : dict

Series.to_frame()

Series.to_frame(name=None) [source] Convert Series to DataFrame Parameters: name : object, default None The passed name should substitute for the series name (if it has one). Returns: data_frame : DataFrame

Series.to_dense()

Series.to_dense() [source] Return dense representation of NDFrame (as opposed to sparse)

Series.to_csv()

Series.to_csv(path=None, index=True, sep=', ', na_rep='', float_format=None, header=False, index_label=None, mode='w', encoding=None, date_format=None, decimal='.') [source] Write Series to a comma-separated values (csv) file Parameters: path : string or file handle, default None File path or object, if None is provided the result is returned as a string. na_rep : string, default ?? Missing data representation float_format : string, default None Format string for floating point number

Series.to_clipboard()

Series.to_clipboard(excel=None, sep=None, **kwargs) [source] Attempt to write text representation of object to the system clipboard This can be pasted into Excel, for example. Parameters: excel : boolean, defaults to True if True, use the provided separator, writing in a csv format for allowing easy pasting into excel. if False, write a string representation of the object to the clipboard sep : optional, defaults to tab other keywords are passed to to_csv Notes Requirements for your pla

Series.tolist()

Series.tolist() [source] Convert Series to a nested list

Series.take()

Series.take(indices, axis=0, convert=True, is_copy=False, **kwargs) [source] return Series corresponding to requested indices Parameters: indices : list / array of ints convert : translate negative to positive indices (default) Returns: taken : Series See also numpy.ndarray.take

Series.T

Series.T return the transpose, which is by definition self

Series.swaplevel()

Series.swaplevel(i=-2, j=-1, copy=True) [source] Swap levels i and j in a MultiIndex Parameters: i, j : int, string (can be mixed) Level of index to be swapped. Can pass level name as string. Returns: swapped : Series Changed in version 0.18.1: The indexes i and j are now optional, and default to the two innermost levels of the index.