Seksjon 1. Kapittel 24
single
Challenge: Memory Efficiency
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
Practice comparing the memory usage of two data frames and providing suggestions for optimizing their memory efficiency.
- Calculate the memory usage of
df1anddf2. - If
df1uses more memory thandf2, return a suggestion for optimizingdf1. - If
df2uses more memory thandf1, return a suggestion for optimizingdf2. - If both data frames use similar memory, return a suggestion to review data types for further optimization.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 24
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