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
I know what's going wrong here, but the error is still somewhat cryptic. So I guess this is mostly a documentation issue. But it puzzled me for some time, because I started out with column names in a CSV file - one of them starting with a "2". So pycharm alerted me of the fact that python names cannot start with a number. A "_" prefix made pycharm happy, but upon import of the module, I ran into this issue.
The error I get for a similar case with namedtuple seems more transparent:
Some attribute nams which are ok for python are not ok for
attrs
:I know what's going wrong here, but the error is still somewhat cryptic. So I guess this is mostly a documentation issue. But it puzzled me for some time, because I started out with column names in a CSV file - one of them starting with a "2". So pycharm alerted me of the fact that python names cannot start with a number. A "_" prefix made pycharm happy, but upon import of the module, I ran into this issue.
The error I get for a similar case with
namedtuple
seems more transparent:The text was updated successfully, but these errors were encountered: