I have code like this:
def func(df):
return df.column[0]
I am running pylint and it gives me this message all the time because it flags df as an invalid name despite it's convention.
C:210, 9: Invalid variable name "df" (invalid-name)
Where 210 refers to the row number (not the message code)
Pylint seems to say I can exclude messages by id type but:
- It doesn't seem to list the message id, just the row and column numbers
- I don't see where I would exclude messages for a specific variable name but not warnings for other variable names.