Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge | Basics
Introduction to pandas [track]

bookChallenge

Opgave

Swipe to start coding

You are given three lists: prices, names, and quantity, representing prices of items, their names and quantity, respectively. Your tasks are:

  1. Create dictionary data in the following format: key is 'Prices', respective values is prices list ('Price': prices), and key is 'Quantity', respective values is quantity list.
  2. Create DataFrame df using .DataFrame() method and passing the data as the first parameter, and names as the index parameter.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 7
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Opsummér dette kapitel

Explain code

Explain why doesn't solve task

close

Awesome!

Completion rate improved to 3.33

bookChallenge

Stryg for at vise menuen

Opgave

Swipe to start coding

You are given three lists: prices, names, and quantity, representing prices of items, their names and quantity, respectively. Your tasks are:

  1. Create dictionary data in the following format: key is 'Prices', respective values is prices list ('Price': prices), and key is 'Quantity', respective values is quantity list.
  2. Create DataFrame df using .DataFrame() method and passing the data as the first parameter, and names as the index parameter.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

close

Awesome!

Completion rate improved to 3.33
Sektion 1. Kapitel 7
single

single

some-alt