Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/io/__pycache__/html.cpython-37.pyc
Назад
B �5�g�� � @ s� d Z ddlmZ ddlmZ ddlZddlZddlZddlm Z m Z ddlmZ ddl mZ ddlmZmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZmZmZmZ ddlm Z ddl!m"Z" da#da$da%da&dd� Z'e�(d�Z)e)fddd�dd�Z*dd� Z+dd� Z,G dd� d�Z-G dd� de-�Z.dd �d!d"�Z/d#d$iZ0d%Z1G d&d'� d'e-�Z2d(d)� Z3d*d+� Z4e2e2e.e.d,�Z5d-d.� Z6dd �d/d0�Z7d1d2� Z8d3d4� Z9ed5d6�dGd;d<d=d>d>d?d@dAd=d=ddBdAdAdCdD�dEdF��Z:dS )HzW :mod:`pandas.io.html` is a module containing functionality for dealing with HTML IO. � )�annotations)�abcN)�Pattern�Sequence)�FilePathOrBuffer)�import_optional_dependency)�AbstractMethodError�EmptyDataError)�deprecate_nonkeyword_arguments)�is_list_like)�!create_series_with_explicit_dtype)� DataFrame)�is_url�stringify_path�urlopen�validate_header_arg)�pprint_thing)� TextParserFc C sL t rd S tddd�} | d k atddd�}|d k atddd�}|d k ada d S )N�bs4�ignore)�errorsz lxml.etree�html5libT)�_IMPORTSr �_HAS_BS4� _HAS_LXML� _HAS_HTML5LIB)r �lxmlr � r �D/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/io/html.py� _importers. s r z[\r\n]+|\s{2,}�str)�s�returnc C s |� d| �� �S )a� Replace extra whitespace inside of a string with a single space. Parameters ---------- s : str or unicode The string from which to remove extra whitespace. regex : re.Pattern The regular expression to use to remove extra whitespace. Returns ------- subd : str or unicode `s` with all extra whitespace replaced with a single space. � )�sub�strip)r! �regexr r r �_remove_whitespaceI s r'