• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

Why 0 instead of 3 in output?

https://code.sololearn.com/cIC0TxuEbNG3/?ref=app

python3numpyargsort
26th May 2020, 10:54 AM
Lerninn
2 odpowiedzi
+ 5
Because they return indices of the sorted numbers. Use: d = np.argsort(x) print(x[d]) To get your output.
26th May 2020, 11:02 AM
Valmob101
Valmob101 - avatar
+ 1
Thanks...
26th May 2020, 11:07 AM
Lerninn

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
I am a beginner, please teach me how to use Python
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Web Development
0 Votes
Please complete this code.
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Can someone please explain python for me
0 Votes