IniziaInizia gratis

Getting started with NumPy arrays

The Fremont Bridge is a major thoroughfare for cyclists commuting into downtown Seattle from the north. Understanding how cycling traffic varies throughout the year is important for any future development into cycling infrastructure that connects to this high traffic route.

A numpy array daily_riders, is loaded into the session, which has the average number of daily riders across the Fremont Bridge for each month in 2016, starting in January and ending in December. Go explore this array!

Questo esercizio fa parte del corso

Python for MATLAB Users

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Determine the type and length of daily_riders
data_type = ____(____)
data_length = len(____)

print("daily_riders is a {} of length {}".format(data_type.__name__, data_length))
Modifica ed esegui il codice