XII Informatics Practices Practical List with Solution 2019-20 (Python - New Course)
XII Informatics Practices Practical List with Solution 2019-20 (Python - New Course) S. No. Practical Details Date of Practical Data handling using Python libraries 1. Task: Write a python code to create a dataframe with suitable headings from the list given below : [['K1', 'Mohanbari', 2019], ['K2', 'Imphal',2013], ['K3', 'Tawang', 2018]] Python Code: import pandas as pd # initialize list of lists data = [['K1', 'KV Mohanbari', 2003], ['K2', 'KV Imphal',1996], ['K3', 'Tawang', 2001]] # Create the pandas DataFrame df = pd.DataFrame(data, columns = ['ID', 'KV_Name', 'Established']) # print DataFrame. print(df ) Output: ID KV_Name Established 0 K1 KV Mohanbari 2003 ...