Doubt in Homework1


I am not able to understand how to put data in this structure.
Can we use pandas dataframe or do we need to do in python.
Can you someone please share me some reference links for this.

Thanks and Regards,

Someone please help me on doubt

Hi @subhobrata1,

I don’t know the context of your homework, but you could use nested lists to convert the above dataframe as

data_list = [[15,3,10,2],[1,5,1,10]]


[ 15 3 10 2 ]
[ 1 5 1 10 ]

I suggest you play around with python lists for longer, and only later consider using numpy or pandas.

Python lists are simple, powerful, and will work in any python environment.

Did this answer your question?