Challenge
Oppgave
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:
- Create dictionary
datain the following format: key is'Prices', respective values ispriceslist ('Price': prices), and key is'Quantity', respective values isquantitylist. - Create DataFrame
dfusing.DataFrame()method and passing thedataas the first parameter, andnamesas theindexparameter.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 7
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.33
Challenge
Sveip for å vise menyen
Oppgave
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:
- Create dictionary
datain the following format: key is'Prices', respective values ispriceslist ('Price': prices), and key is'Quantity', respective values isquantitylist. - Create DataFrame
dfusing.DataFrame()method and passing thedataas the first parameter, andnamesas theindexparameter.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 7
single