Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/core/computation/__pycache__/parsing.cpython-37.pyc
Назад
B �5�g� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlZddlZddl m Z mZ dZddd �d d�Z ddd �dd�Zddd �dd�Zddddd�dd�Zddd�dd�ZdS )z6 :func:`~pandas.eval` source string parsing functions � )�annotations)�StringIO)� iskeywordN)�Hashable�Iterator�d �str)�name�returnc s~ | � � rt| �s| S dd� tj�� D �� � �ddddddd d �� d�� fdd �| D ��} d| } | � � sztd| � d���| S )a= Create valid Python identifiers from any string. Check if name contains any special characters. If it contains any special characters, the special characters will be replaced by a special string and a prefix is added. Raises ------ SyntaxError If the returned name is not a Python valid identifier, raise an exception. This can happen if there is a hashtag in the name, as the tokenizer will than terminate and not find the backtick. But also for characters that fall out of the range of (U+0001..U+007F). c S s$ i | ]\}}d t j| � d �|�qS )�_)�token�tok_name)�.0�char�tokval� r �U/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/core/computation/parsing.py� <dictcomp>) s z2create_valid_python_identifier.<locals>.<dictcomp>r Z_QUESTIONMARK_Z_EXCLAMATIONMARK_Z_DOLLARSIGN_Z _EUROSIGN_Z _SINGLEQUOTE_Z _DOUBLEQUOTE_)� �?�!�$u €�'�"� c 3 s | ]}� � ||�V qd S )N)�get)r r )�special_characters_replacementsr r � <genexpr><