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
This is against PEP-8 naming conventions and IMHO sets a bad example. At least 1D arrays should be lowercase. One may debate on 2D arrays, which have a history of using uppercase letters in the Matplotlib docs.
I use capital letters to indicate the variable is an array and I find this to be quite convenient. Since PEP-8 is a generic semantic-blind recommendation and I would prefer not to enforce it too strictly.
Activity
rougier commentedon Jul 26, 2021
I use capital letters to indicate the variable is an array and I find this to be quite convenient. Since PEP-8 is a generic semantic-blind recommendation and I would prefer not to enforce it too strictly.
timhoffm commentedon Jul 26, 2021
Numpy and matplotlib docs generally don't do this. Changing naming conventions (whether better or not) may be confusing.
rougier commentedon Jul 26, 2021
I think PEP-8 is confusing in that specific case. But ok to change names if really necessary.