LoslegenKostenlos loslegen

Stacking basetables

In the previous exercise you constructed two basetables basetable_january_2017 and basetable_january_2018 that correspond to two snapshots with target periods January 2017 and January 2018, respectively. In order to have enough data, another snapshot is added, resulting in basetable_january_2016. In this exercise, you will learn to construct the final basetable by stacking the basetables, and verify that there are enough observations in it.

Diese Übung ist Teil des Kurses

Intermediate Predictive Analytics in Python

Kurs anzeigen

Anleitung zur Übung

  • Construct a basetable by adding basetable_january_2017 to basetable_january_2016.
  • Add basetable_january_2018 to basetable.
  • Print the number of observations in the final basetable.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Add basetable_january_2017 to basetable_january_2016
basetable = ____.____(____)

# Add basetable_january_2018 to basetable
basetable = ____.____(____)

# Number of observations in the final basetable
print(____(____))
Code bearbeiten und ausführen