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
The transformation <anything>.sort_values().head() --> <anything>.nsmallest(n=5) is correct only if <anything> is a pandas.Series (it also works for DataFrames but we don't support it for now). Currently, we don't perform this check.
In the following example, Dias incorrectly rewrites code:
The transformation
<anything>.sort_values().head()
--><anything>.nsmallest(n=5)
is correct only if<anything>
is apandas.Series
(it also works forDataFrame
s but we don't support it for now). Currently, we don't perform this check.In the following example, Dias incorrectly rewrites code:
Add the check into the rewritten code. So, if the original code is
res = <anything>.sort_values().head()
, the rewritten code should be:The text was updated successfully, but these errors were encountered: