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
To replicate, paste the following code into the editor
importpandasaspdimportiocsv='''breed,size,weight,heightLabrador Retriever,medium,67.5,23.0German Shepherd,large,,24.0Beagle,small,,14.0Golden Retriever,medium,60.0,22.75Yorkshire Terrier,small,5.5,Bulldog,medium,45.0,Boxer,medium,,23.25Poodle,medium,,16.0Dachshund,small,24.0,Rottweiler,large,,24.5'''dogs=pd.read_csv(io.StringIO(csv))
# sort the data frame by the value of the size column# in descending orderdogs.sort_values(by='size', ascending=False, inplace=True)
A hack for it would be to add
dogs=dogs
below the last line of this code.
The text was updated successfully, but these errors were encountered:
To replicate, paste the following code into the editor
A hack for it would be to add
below the last line of this code.
The text was updated successfully, but these errors were encountered: