Why are we adding "r" in open command?

Screen Link: https://app.dataquest.io/m/289/introduction-to-numpy/4/nyc-taxi-airport-data

Doubt Code: f = open(“nyc_taxis.csv”, “r”)

Replace this line with your code

What I expected to happen:

What actually happened:

Replace this line with the output/error

You can check out the documentation for open() and see what the r is used for.

1 Like