DataFrame.select_dtypes()

DataFrame.select_dtypes(include=None, exclude=None) [source] Return a subset of a DataFrame including/excluding columns based on their dtype. Parameters: include, exclude : list-like A list of dtypes or strings to be included/excluded. You must pass in a non-empty sequence for at least one of these. Returns: subset : DataFrame The subset of the frame including the dtypes in include and excluding the dtypes in exclude. Raises: ValueError If both of include and exclude are empty If

Panel4D.to_json()

Panel4D.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 va

Panel.all()

Panel.all(axis=None, bool_only=None, skipna=None, level=None, **kwargs) [source] Return whether all elements are True over requested axis Parameters: axis : {items (0), major_axis (1), minor_axis (2)} skipna : boolean, default True Exclude NA/null values. If an entire row/column is NA, the result will be NA level : int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a DataFrame bool_only : boolean, default None In

Index.set_names()

Index.set_names(names, level=None, inplace=False) [source] Set new names on index. Defaults to returning new index. Parameters: names : str or sequence name(s) to set level : int, level name, or sequence of int/level names (default None) If the index is a MultiIndex (hierarchical), level(s) to set (None for all levels). Otherwise level must be None inplace : bool if True, mutates in place Returns: new index (of same type and class...etc) [if inplace, returns None] Examples >>

MultiIndex.take()

MultiIndex.take(indices, axis=0, allow_fill=True, fill_value=None, **kwargs) [source] return a new %(klass)s of the values selected by the indices For internal compatibility with numpy arrays. Parameters: indices : list Indices to be taken axis : int, optional The axis over which to select values, always 0. allow_fill : bool, default True fill_value : bool, default None If allow_fill=True and fill_value is not None, indices specified by -1 is regarded as NA. If Index doesn?t hold NA,

Panel4D.multiply()

Panel4D.multiply(other, axis=0) [source] Multiplication of series and other, element-wise (binary operator mul). Equivalent to panel * other. Parameters: other : Panel or Panel4D axis : {labels, items, major_axis, minor_axis} Axis to broadcast over Returns: Panel4D See also Panel4D.rmul

Series.cat.add_categories()

Series.cat.add_categories(*args, **kwargs) [source] Add new categories. new_categories will be included at the last/highest place in the categories and will be unused directly after this call. Parameters: new_categories : category or list-like of category The new categories to be included. inplace : boolean (default: False) Whether or not to add the categories inplace or return a copy of this categorical with added categories. Returns: cat : Categorical with new categories added or N

GroupBy.get_group()

GroupBy.get_group(name, obj=None) [source] Constructs NDFrame from group with provided name Parameters: name : object the name of the group to get as a DataFrame obj : NDFrame, default None the NDFrame to take the DataFrame out of. If it is None, the object groupby was called on will be used Returns: group : type of obj

Series.set_axis()

Series.set_axis(axis, labels) [source] public verson of axis assignment

Panel.sort_index()

Panel.sort_index(axis=0, level=None, ascending=True, inplace=False, kind='quicksort', na_position='last', sort_remaining=True) [source] Sort object by labels (along an axis) Parameters: axis : axes to direct sorting level : int or level name or list of ints or list of level names if not None, sort on values in specified index level(s) ascending : boolean, default True Sort ascending vs. descending inplace : bool, default False if True, perform operation in-place kind : {?quicksort?,