예제 #1
0
    def _parse_tables(self, doc, match, attrs):
        """Return all tables from the parsed DOM.

        Parameters
        ----------
        doc : tree-like
            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
            * If `match` does not match any text in the document.

        Returns
        -------
        tables : list of node-like
            A list of <table> elements to be parsed into raw data.
        """
        raise com.AbstractMethodError(self)
예제 #2
0
    def _build_doc(self):
        """Return a tree-like object that can be used to iterate over the DOM.

        Returns
        -------
        obj : tree-like
        """
        raise com.AbstractMethodError(self)
예제 #3
0
파일: html.py 프로젝트: Smit7550/pandas-1
    def _build_doc(self):
        """
        Return a tree-like object that can be used to iterate over the DOM.

        Returns
        -------
        node-like
            The DOM from which to parse the table element.
        """
        raise com.AbstractMethodError(self)
예제 #4
0
    def _parse_td(self, obj):
        """Return the td elements from a row element.

        Parameters
        ----------
        obj : node-like

        Returns
        -------
        columns : list of node-like
            These are the elements of each row, i.e., the columns.
        """
        raise com.AbstractMethodError(self)
예제 #5
0
파일: html.py 프로젝트: Smit7550/pandas-1
    def _parse_tfoot_tr(self, table):
        """
        Return the list of tfoot row elements from the parsed table element.

        Parameters
        ----------
        table : a table element that contains row elements.

        Returns
        -------
        list of node-like
            These are the <tr> row elements of a table.
        """
        raise com.AbstractMethodError(self)
예제 #6
0
    def _parse_tr(self, table):
        """Return the list of row elements from the parsed table element.

        Parameters
        ----------
        table : node-like
            A table element that contains row elements.

        Returns
        -------
        rows : list of node-like
            A list row elements of a table, usually <tr> or <th> elements.
        """
        raise com.AbstractMethodError(self)
예제 #7
0
    def _parse_tbody(self, table):
        """Return the list of tbody elements from the parsed table element.

        Parameters
        ----------
        table : node-like
            A table element that contains row elements.

        Returns
        -------
        tbodys : list of node-like
            A list of <tbody>...</tbody> elements
        """
        raise com.AbstractMethodError(self)
예제 #8
0
    def _parse_thead(self, table):
        """Return the header of a table.

        Parameters
        ----------
        table : node-like
            A table element that contains row elements.

        Returns
        -------
        thead : node-like
            A <thead>...</thead> element.
        """
        raise com.AbstractMethodError(self)
예제 #9
0
    def _parse_tbody(self, table):
        """Return the body of the table.

        Parameters
        ----------
        table : node-like
            A table element that contains row elements.

        Returns
        -------
        tbody : node-like
            A <tbody>...</tbody> element.
        """
        raise com.AbstractMethodError(self)
예제 #10
0
    def _parse_tfoot(self, table):
        """Return the footer of the table if any.

        Parameters
        ----------
        table : node-like
            A table element that contains row elements.

        Returns
        -------
        tfoot : node-like
            A <tfoot>...</tfoot> element.
        """
        raise com.AbstractMethodError(self)
예제 #11
0
    def _text_getter(self, obj):
        """Return the text of an individual DOM node.

        Parameters
        ----------
        obj : node-like
            A DOM node.

        Returns
        -------
        text : str or unicode
            The text from an individual DOM node.
        """
        raise com.AbstractMethodError(self)
예제 #12
0
파일: base.py 프로젝트: wizardhand/pandas
    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 com.AbstractMethodError(self)
예제 #13
0
파일: html.py 프로젝트: Smit7550/pandas-1
    def _equals_tag(self, obj, tag):
        """
        Return whether an individual DOM node matches a tag

        Parameters
        ----------
        obj : node-like
            A DOM node.

        tag : str
            Tag name to be checked for equality.

        Returns
        -------
        boolean
            Whether `obj`'s tag name is `tag`
        """
        raise com.AbstractMethodError(self)
예제 #14
0
파일: html.py 프로젝트: Smit7550/pandas-1
    def _parse_tbody_tr(self, table):
        """
        Return the list of tbody row elements from the parsed table element.

        HTML5 table bodies consist of either 0 or more <tbody> elements (which
        only contain <tr> elements) or 0 or more <tr> elements. This method
        checks for both structures.

        Parameters
        ----------
        table : a table element that contains row elements.

        Returns
        -------
        list of node-like
            These are the <tr> row elements of a table.
        """
        raise com.AbstractMethodError(self)
예제 #15
0
 def write(self, df, path, compression, **kwargs):
     raise com.AbstractMethodError(self)
예제 #16
0
 def _format_axes(self):
     raise com.AbstractMethodError(self)
예제 #17
0
 def _try_convert_dates(self):
     raise com.AbstractMethodError(self)
예제 #18
0
파일: ops.py 프로젝트: zhuomingliang/pandas
 def apply(self, f):
     raise com.AbstractMethodError(self)
 def float_precision_choices(self):
     raise com.AbstractMethodError(self)
예제 #20
0
파일: base.py 프로젝트: wizardhand/pandas
 def _update_inplace(self, result, **kwargs):
     raise com.AbstractMethodError(self)
예제 #21
0
 def _upsample(self, f, limit=None, fill_value=None):
     raise com.AbstractMethodError(self)
예제 #22
0
 def __next__(self):
     raise com.AbstractMethodError(self)
예제 #23
0
 def _add_offset(self, offset):
     raise com.AbstractMethodError(self)
예제 #24
0
 def read(self, path, columns=None, **kwargs):
     raise com.AbstractMethodError(self)
예제 #25
0
 def _sub_datelike(self, other):
     raise com.AbstractMethodError(self)
예제 #26
0
파일: base.py 프로젝트: wizardhand/pandas
 def aggregate(self, func, *args, **kwargs):
     raise com.AbstractMethodError(self)
예제 #27
0
 def _box_func(self):
     """
     box function to get object from internal representation
     """
     raise com.AbstractMethodError(self)
예제 #28
0
파일: base.py 프로젝트: wizardhand/pandas
 def __unicode__(self):
     raise com.AbstractMethodError(self)
예제 #29
0
 def _formatter_func(self):
     raise com.AbstractMethodError(self)
예제 #30
0
 def _downsample(self, f):
     raise com.AbstractMethodError(self)