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
English,
4 months ago
Economy,
4 months ago
Social Sciences,
4 months ago
Physics,
8 months ago
Math,
8 months ago
English,
1 year ago
Accountancy,
1 year ago
Political Science,
1 year ago