Answer the question
In order to leave comments, you need to log in
Python pandas - how to merge indices?
Question 1:
I extracted a table from PDF and brought it to this form using pandas:
The "date" column is built from two other columns (respectively: "day of the week", "number"), but it is necessary to convert them to such a form, for example: ("Monday 04.Sep") the index needs a single row, is it possible to somehow implement this at this stage, or was it worth initially combining two columns?
Question 2:
The same "date" column is now represented by an index only on the first row of a certain date, is it possible to somehow "stretch" this same date to the end of each block?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question