C12_Worksheet 2_IP_2024-25
C12_Worksheet 2_IP_2024-25
C12_Worksheet 2_IP_2024-25
c dict={'name':['Win1', 'Win2','Win3'],
'age' : [22, 25, 24],
'occ' : ['engineer', 'doctor', 'accountant']}
DF = pd.DataFrame(_______)
print(_______)
i df = pd.DataFrame({
'col1': ['A', 'A', 'B', ‘Z’, 'D', 'C'],
'col2': [2, 1, 9, 8, 7, 4],
'col3': [0, 1, 9, 4, 2, 3],
'col4': ['a', 'B', 'c', 'D', 'e', 'F'] })
print(df.sort_values(by=['col1']))