how to remove last value from a series in python code example Example: python remove last element from list record = record[:-1]