Aan de slagGa gratis aan de slag

How to fix the data import?

Two optional arguments that you can add to .read_csv() to better represent the data from an external file are:

  • na_values: Converts a given string to np.nan, defaults to None
  • parse_dates: Reads the data in a list of given columns as dtype datetime64, defaults to False

Which of the following steps should you take to make sure that the data imported from nasdaq-listings.csv are accurately represented?

The nasdaq DataFrame that you created in the previous exercise is available in your workspace.

Deze oefening maakt deel uit van de cursus

Importing and Managing Financial Data in Python

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen