How to make data pass through: pandas.errors.InvalidIndexError: (slice()...)

This is a bit outside of the scope of this forum, but for a pandas series, you can get the “column” name by calling dfff3.name. Also, you shouldn’t need to call to_list() for drops 1-4 either.

1 Like