Informatics Practices
Find the error in following code fragment :
S2 = pd.Series([1, 2, 3, 4], index = range(4))
Python Pandas
2 Likes
Answer
There is no error in the above code.
Answered By
2 Likes
Related Questions
Find the error in following code fragment :
S = pd.Series(2, 3, 4, 5, index = range(4))Find the error in following code fragment
S1 = pd.Series(1, 2, 3, 4, index = range(7))Find the Error :
data = np.array(['a', 'b', 'c', 'd', 'e', 'f']) s = pd.Series(data, index = [100, 101, 102, 103, 104, 105]) print(s[102, 103, 104] )Can you correct the error ?
Why does following code cause error ?
s1 = pd.Series(range(1, 15, 3), index = list('abcd'))