This worked for me.
# Import Python's built-in csv library.
# Ask the user to find the CSV in the local file system.
# Create a reader object that will iterate over the lines of a CSV.
# We're using Python's built-in open() function to open the file.
# Create a List of strings to use as a header for the dataset. Note that the number
# of headers must match the number of columns in the CSV, otherwise an error will occur.
# The simplest approach would be to use next() to read the first line in the file, and
# store that at the header.
# Create a dataset with the header and the rest of our CSV.
# Store it into the table.