M
M
maforo10632021-09-29 10:43:54
Python
maforo1063, 2021-09-29 10:43:54

Python pandas - how to merge indices?

Question 1:
I extracted a table from PDF and brought it to this form using pandas:

615418f577f1e742404037.png

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 question

Ask a Question

731 491 924 answers to any question