data mining processing the data from large file and finding patterns in it is known as data-mining data mining required lots of data cleaning and data transformation operations in this sectionwe will see some of these operations building data structure from file in the previous we read the data from the file and then process the data in this sectionwe will save the data in list/dictionary and then use these data structure to process the data we will see that the data processing operations become easier when the data is converted in the form of dictionary importantin previous we read the file and calculated the total prices inside the function 'ring_costthe problem with this method is that the read data is no longer available (after the return statementfor the further processing thereforeit is good idea to save the results in list or dictionaryso that it will be available for other functions as wellas shown in this lets see the contents of the 'price csvfile againcat price csv date,metal,radius,price,quantity "","gold", , , "","silver", , , "","iron", , , "","gold", , , "","copper", , , "","iron", , , save and read data in list create new file 'datamine pywith following contents these contents are same as listing except it returns the list alsoa check is applied for input 'modevalue datamine py import csv def read_file(filenamemode='warn')''read csv file and save data in the list ''(continues on next page