You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the eval method treats special characters in column names different than the query method.
The query method allows for the use of backticks to enclose column names with special characters in contrast to the eval method. This inconsistency can be confusing for users.
The proposal is to enhance the parsing capabilities of the eval method to recognize and handle backticks in a manner similar to the query method. This modification would provide users with more flexibility when working with DataFrame expressions, especially in cases where column names contain special characters.
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
Hey Pandas team,
Currently, the
eval
method treats special characters in column names different than thequery
method.The
query
method allows for the use of backticks to enclose column names with special characters in contrast to theeval
method. This inconsistency can be confusing for users.The proposal is to enhance the parsing capabilities of the
eval
method to recognize and handle backticks in a manner similar to thequery
method. This modification would provide users with more flexibility when working with DataFrame expressions, especially in cases where column names contain special characters.Here is an example:
Feature Description
Alternative Solutions
Can
eval
parsing be adapted to the wayquery
parses?Additional Context
Python 3.11.5
Pandas 2.1.1
The text was updated successfully, but these errors were encountered: