Generation

generate functionSun, 13 Nov 2022

Open a csv file, and put the column names in an array. Return the array

def get_col_names(file): f = open(file, "r") col_names = f.readline().split(",") f.close() return col_names

Questions about programming?Chat with your personal AI assistant