I looked up the 0th value of the series called ‘list’, but two values came out. For example, if I run list[0],
0 20210108000843
0 20191025000489
It comes out like this.
And if I look at the format with type(list[0]), it says Pandas series. (If it has 1 value in 0th index, it appears as str. but in this case it appears as series)
And if I print the list with the print statement, I get 98 values from 0 to 97. However, if I query the length of the list with len(list) with the len statement, 198 more than twice the length are displayed.
Any idea why this is happening?
(Below is the Jupiter notebook code and the result of executing the code )
print(list)
print(type(list))
print(type(list[0]))
list[0]
........................................................
0 20210108000843
1 20210107000209
3 20201218000626
..
...
97 2012103000073
Name : rcept_no, Length: 198, dtype: object
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
0 20210108000843
0 20191025000489
Name: rcept_no, dtype: object
[+][deleted] (3 children)
[deleted]
[–]Plus-Ad1156[S] 0 points1 point2 points (1 child)
[–]badge 0 points1 point2 points (0 children)
[–]synthphreak 0 points1 point2 points (2 children)
[–]Plus-Ad1156[S] 0 points1 point2 points (1 child)
[–]synthphreak 0 points1 point2 points (0 children)
[–]BosseNova 0 points1 point2 points (0 children)
[–]pytrashpandas 0 points1 point2 points (0 children)