df.iterrows() FUNCTION import pandas as pd d={2015:{'q1':34500, 'q2':56000, 'q3':47000, 'q4':49000}, 2016:{'q1':44500, 'q2':46100, 'q3':57000, 'q4':59000}, 2017:{'q1':54500, 'q2':51000, 'q3':47000, 'q4':58500}} df=pd.DataFrame(d) for (row,rowseries) in df.iterrows(): print("quarter:",row) print("revenue") print(rowseries) iteritems() FUNCTION import pandas as pd hm_past3={2018:{'English':98,'Physics':99,'Chemistry':100, 'Biology':100,'Maths':100,'CS':100}, 2019:{'English':99,'Physics':97,'Chemistry':99, 'Biology':100,'Maths':100,'CS':99}, 2020:{'English':97,'Physics':98,'Chemistry':98,'Biology':98,'Maths':99,'CS':96}, } df1=pd.DataFrame(hm_past3) for i, col in df1.iteritems(): print("-----------------------") print(col...
FUNDAMENTALS OF USER INTERFACE USER EXPERIENCE AND ERGONOMICS 1. What is User Experience? User Experience (UX) refers to the overall experience, feelings and perceptions of a user while interacting with a product, service, system or environment . A designer should not think only about how a product looks. The designer must also consider: Is it easy to use? Is it comfortable? Can the user understand how to use it? Does it solve the user's problem? Is it safe? Does the user enjoy using it? Does it meet the user's actual needs? Therefore: Good design focuses not only on the product but also on the experience of the person using the product. 2. Understanding UX Through an Example Consider two school bags. Bag A looks very attractive but: has uncomfortable straps, is difficult to open, has poorly arranged compartments, becomes painful to carry. Bag B has a simple appearance but: distributes weight comfortably, has padded adjustable straps, ...