In the doc (and the code), the index argument is used for both DataFrame and Series while the header only for DataFrame
index (boolean, default True) – Includes the index when setting a Pandas DataFrame or Series.
header (boolean, default True) – Includes the column headers when setting a Pandas DataFrame.
it could be better to also use the header argument when setting Series
In the doc (and the code), the index argument is used for both DataFrame and Series while the header only for DataFrame
it could be better to also use the header argument when setting Series