Page 203 - AI_Ver_3.0_class_11
P. 203

with open('Customer.csv', 'r') as file:
                          reader = csv.reader(file)
                          for row in reader:
                               print(row)
                     Output:

                     ['Customer_ID', 'First_Name', 'Last_Name', 'City']
                     ['1', 'Aishwarya', 'Iyer', 'Chennai']
                     ['2', 'Rajesh', 'Reddy', 'Hyderabad']
                     ['3', 'Sneha', 'Gupta', 'Kolkata']
                     ['4', 'Neha', 'Trivedi', 'Ahmedabad']
                     ['5', 'Rahul', 'Mehta', 'Bangalore']




                               Brainy Fact



                       In artificial intelligence and machine learning, CSV files are frequently used to store datasets for training
                       models. The data is typically arranged in rows and columns, with each column representing a variable or
                       feature and each row representing an instance or example.





                         Understanding Libraries

                 In Python, libraries refer to collections of pre-written code modules or functions that you can use to perform specific
                 tasks without having to write the code from scratch. These libraries are designed to be reused in different projects that
                 makes the development easier by providing various ready-to-use solutions for particular tasks.


                                      NumPy                     Scikit-learn                   Pandas


























                 In Python, functions are organised within libraries similar to how the library stores books on different subjects. Python
                 libraries organise functions into different categories, such as math, web development, data analysis, machine learning,
                 etc. These libraries can be imported into Python programs to access their functionalities and tools.

                                                                                         Python Programming     201
   198   199   200   201   202   203   204   205   206   207   208