I am having trouble understanding the last line of this code. The csv file has several columns, but after the last line, only the data below the columns specified remains. What confuses me is why we use 4 brackets instead of two.
import pandas
data = pandas.read_csv("student-mat.csv", sep=";")
data = data[["G1", "G2", "G3", "studytime", "failures", "absences"]]