[Solved]Write Function Named Csvtodb Takes String Parameter Representing Name Csv File Doesn T Ret Q37282152
Write a function named “csv_to_db” that takes a string as aparameter representing the name of a csv file and doesn’t return avalue. There is a database saved in a file named “police.db”containing a table named “lovely” with columns “revenue”,”visitor”, and “softly”. Read the csv file with the name equal tothe input string and add each row of this file as a record in thetable. Each row in the csv file will contain 3 strings as itsvalues which should be used as the values for the three columns inthe table.
Be sure to commit your changes to the database, but do not closethe connection to the database
Expert Answer
Answer to Write a function named “csv_to_db” that takes a string as a parameter representing the name of a csv file and doesn’t r… . . .
OR

