Computer Science, asked by VedantGarg, 7 months ago

Rewrite the given code to create the below DataFrame using List instead of Dictionary: import pandas as pd df=pd.DataFrame({'a':[30,50],'b':[3,4],'c':[99,68]}) print(df)

Answers

Answered by gyadav30122000
0

Explanation:

Rewrite the given code to create the below DataFrame using List instead of Dictionary: import pandas as pd df=pd.DataFrame({'a':[30,50],'b':[3,4],'c':[99,68]}) print(df)

Answered by Riya1045
0

Explanation:

A Series is a one-dimensional labeled array capable of holding any data type (integers, strings, floating point numbers, Python objects, etc.). It has to be remembered that unlike Python lists, a Series will always contain data of the same type. Let's see how to create a Pandas Series from lists.

Similar questions