Пример #1
0
    def _gotitem(self, key, ndim, subset=None):
        """
        sub-classes to define
        return a sliced object

        Parameters
        ----------
        key : string / list of selections
        ndim : 1,2
            requested ndim of result
        subset : object, default None
            subset to act on

        """
        raise AbstractMethodError(self)
Пример #2
0
    def _equals_tag(self, obj, tag):
        """Returns whether an individual DOM node matches a tag

        Parameters
        ----------
        obj : a DOM node.

        tag : str
            Tag to be checked for equality

        Returns
        -------
        is_tag_equal : boolean
            boolean indicating if the object is equal to tag 'tag'
        """
        raise AbstractMethodError(self)
Пример #3
0
    def _contains_tag(self, obj, tag):
        """Returns whether an individual DOM node has a particular tag
        contained within it

        Parameters
        ----------
        obj : a DOM node.

        tag : str
            Tag to be found in this DOM

        Returns
        -------
        does_tag_contain : boolean
            boolean indicating if the object contains tag 'tag'
        """
        raise AbstractMethodError(self)
Пример #4
0
    def _parse_tables(self, doc, match, attrs):
        """Return all tables from the parsed DOM.

        Parameters
        ----------
        doc : the DOM from which to parse the table element.

        match : str or regular expression
            The text to search for in the DOM tree.

        attrs : dict
            A dictionary of table attributes that can be used to disambiguate
            multiple tables on a page.

        Raises
        ------
        ValueError : `match` does not match any text in the document.

        Returns
        -------
        tables : list of HTML <table> elements to be parsed into raw data.
        """
        raise AbstractMethodError(self)
Пример #5
0
 def _format_axes(self):
     raise AbstractMethodError(self)
Пример #6
0
 def _try_convert_dates(self):
     raise AbstractMethodError(self)
Пример #7
0
 def float_precision_choices(self):
     raise AbstractMethodError(self)
Пример #8
0
 def read(self, path, columns=None, **kwargs):
     raise AbstractMethodError(self)
Пример #9
0
 def aggregate(self, func, *args, **kwargs):
     # type: (SelectionFunction, *Any, **Any) -> Any
     raise AbstractMethodError(self)
Пример #10
0
 def __unicode__(self):
     raise AbstractMethodError(self)
Пример #11
0
 def _sub_datelike(self, other):
     raise AbstractMethodError(self)
Пример #12
0
 def _make_accessor(cls, data):
     raise AbstractMethodError("_make_accessor should be implemented"
                               "by subclass and return an instance"
                               "of `cls`.")
Пример #13
0
 def __unicode__(self):
     # type: () -> Text
     raise AbstractMethodError(self)
Пример #14
0
 def _box_func(self):
     """
     box function to get object from internal representation
     """
     raise AbstractMethodError(self)
Пример #15
0
 def _format_footer(self):
     raise AbstractMethodError(self)
Пример #16
0
 def _formatter_func(self):
     raise AbstractMethodError(self)
Пример #17
0
 def __next__(self):
     raise AbstractMethodError(self)
Пример #18
0
 def _update_inplace(self, result, **kwargs):
     raise AbstractMethodError(self)
Пример #19
0
 def write(self, df, path, compression, **kwargs):
     raise AbstractMethodError(self)
Пример #20
0
 def aggregate(self, func, *args, **kwargs):
     raise AbstractMethodError(self)
Пример #21
0
 def _update_inplace(self, result, **kwargs):
     # type: (Any, **Any) -> Any
     raise AbstractMethodError(self)