Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Herausforderung: Erstellen Einer Series | Die Alleresten Schritte
Pandas Erste Schritte

book
Herausforderung: Erstellen Einer Series

Aufgabe

Swipe to start coding

  1. Erstellen Sie ein Series-Objekt mit der Liste color_names.

  2. Weisen Sie das resultierende Series-Objekt der Variablen colors zu und drucken Sie es dann aus.

Lösung

import pandas as pd

color_names = ['Red', 'Black', 'Gray', 'Yellow', 'White', 'Green']
# Create a `Series`
colors = pd.Series(color_names)
# Display the results
print(colors)

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
import pandas as pd

color_names = ['Red', 'Black', 'Gray', 'Yellow', 'White', 'Green']
# Create a `Series`
colors = ___
# Display the results
print(___)
toggle bottom row
We use cookies to make your experience better!
some-alt