Series.cat.reorder_categories()

Series.cat.reorder_categories(*args, **kwargs) [source] Reorders categories as specified in new_categories. new_categories need to include all old categories and no new category items. Parameters: new_categories : Index-like The categories in new order. ordered : boolean, optional Whether or not the categorical is treated as a ordered categorical. If not given, do not change the ordered information. inplace : boolean (default: False) Whether or not to reorder the categories inplace or

Panel4D.round()

Panel4D.round(decimals=0, *args, **kwargs) [source] Round each value in Panel to a specified number of decimal places. New in version 0.18.0. Parameters: decimals : int Number of decimal places to round to (default: 0). If decimals is negative, it specifies the number of positions to the left of the decimal point. Returns: Panel object See also numpy.around

Panel4D.asof()

Panel4D.asof(where, subset=None) [source] The last row without any NaN is taken (or the last row without NaN considering only the subset of columns in the case of a DataFrame) New in version 0.19.0: For DataFrame If there is no good value, NaN is returned. Parameters: where : date or array of dates subset : string or list of strings, default None if not None use these columns for NaN propagation Returns: where is scalar value or NaN if input is Series Series if input is DataFrame wh

Series.truncate()

Series.truncate(before=None, after=None, axis=None, copy=True) [source] Truncates a sorted NDFrame before and/or after some particular index value. If the axis contains only datetime values, before/after parameters are converted to datetime values. Parameters: before : date Truncate before index value after : date Truncate after index value axis : the truncation axis, defaults to the stat axis copy : boolean, default is True, return a copy of the truncated section Returns: truncate

DataFrameGroupBy.idxmax()

DataFrameGroupBy.idxmax(axis=0, skipna=True) Return index of first occurrence of maximum over requested axis. NA/null values are excluded. Parameters: axis : {0 or ?index?, 1 or ?columns?}, default 0 0 or ?index? for row-wise, 1 or ?columns? for column-wise skipna : boolean, default True Exclude NA/null values. If an entire row/column is NA, the result will be first index. Returns: idxmax : Series See also Series.idxmax Notes This method is the DataFrame version of ndarray.argmax.

Series.str.strip()

Series.str.strip(to_strip=None) [source] Strip whitespace (including newlines) from each string in the Series/Index from left and right sides. Equivalent to str.strip(). Returns: stripped : Series/Index of objects

Series.str.isdigit()

Series.str.isdigit() [source] Check whether all characters in each string in the Series/Index are digits. Equivalent to str.isdigit(). Returns: is : Series/array of boolean values

DataFrame.plot.line()

DataFrame.plot.line(x=None, y=None, **kwds) [source] Line plot New in version 0.17.0. Parameters: x, y : label or position, optional Coordinates for each point. **kwds : optional Keyword arguments to pass on to pandas.DataFrame.plot(). Returns: axes : matplotlib.AxesSubplot or np.array of them

Index.drop_duplicates()

Index.drop_duplicates(*args, **kwargs) [source] Return Index with duplicate values removed Parameters: keep : {?first?, ?last?, False}, default ?first? first : Drop duplicates except for the first occurrence. last : Drop duplicates except for the last occurrence. False : Drop all duplicates. take_last : deprecated Returns: deduplicated : Index

pandas.timedelta_range()

pandas.timedelta_range(start=None, end=None, periods=None, freq='D', name=None, closed=None) [source] Return a fixed frequency timedelta index, with day as the default frequency Parameters: start : string or timedelta-like, default None Left bound for generating dates end : string or datetime-like, default None Right bound for generating dates periods : integer or None, default None If None, must specify start and end freq : string or DateOffset, default ?D? (calendar daily) Frequen