t5.py 280 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @Auther :liuyuqi.gov@msn.cn
  5. @Time :2018/7/9 2:07
  6. @File :t5.py
  7. '''
  8. import pandas as pd
  9. obj3 = pd.Series(['blue', 'purple', 'yellow'], index=[0, 2, 4])
  10. print(obj3)
  11. obj4 = obj3.reset_index(drop=True)
  12. print(obj4)
  13. print(type(obj4))