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 came across a suggested reformatting with Pandas code that changed the result. The suggestion is "Sourcery - Use f-string instead of string concatenation" on code that looks like this:
df["game_and_track"] = df["game"] + "--" + df["track_title"]
The suggested refactoring changed the operation from broadcasting the string to the shape of the other columns and vectorizing the operation to joining the entirety of each column to the string n times (n=the number of rows).
Sourcery Version
0.10.2
Code editor or IDE name and version
All
OS name and version
All
The text was updated successfully, but these errors were encountered:
Issue description or question
I came across a suggested reformatting with Pandas code that changed the result. The suggestion is "Sourcery - Use f-string instead of string concatenation" on code that looks like this:
df["game_and_track"] = df["game"] + "--" + df["track_title"]
The suggested refactoring changed the operation from broadcasting the string to the shape of the other columns and vectorizing the operation to joining the entirety of each column to the string n times (n=the number of rows).
Sourcery Version
0.10.2
Code editor or IDE name and version
All
OS name and version
All
The text was updated successfully, but these errors were encountered: