Home > other >  Python pandas package Serises object integer tag references for help
Python pandas package Serises object integer tag references for help

Time:05-26

When Serises label as an integer, default is according to the label index,

So could you please tell me, why are the index of the Series, the second reference nothing? Is not the default label index to use?
 import pandas as pd 
A=pd. Series (range (10, 20), the index=range (20, 30))
Print (a, a, [but], a. oc [them], sep='\ n -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \ n')

CodePudding user response:

So to understand:
A [], Anderson, loc [], digital expression of position is
A. oc [], the digital expression is the label
  • Related