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
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
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
Hindi,
3 months ago
Physics,
7 months ago
Math,
7 months ago
English,
11 months ago
Accountancy,
11 months ago
Political Science,
11 months ago