Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsetnames could break out early if identical(old,new) #3783
Comments
|
Actually it already does this in the Lines 2447 to 2451 in a8e926a Will file a fix for |
I believe this would work already, no? If the pattern in |
|
@HughParsonage it works but setnames still overwrites the names redundantly |
|
This case is a nice one. Have been looking at it and @HughParsonage seems right to me: that case (where the pattern is not matched to any column name) does not overwrite the names redundantly. Even where only a few column names are matched, it only updates those. So if those don't touch key or index names, then the key or index name updates will be saved too. The |
Am writing a function that works like
It would be cleaner to just write
And (in the
!lengthcase) letsetnamesrealizeoldandneware the same & return early for efficiency.