Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88126

how to extract multiple columns stored using indentation in Excel using python

$
0
0

I have an excel which is structured like this: The different levels of ledgers are all coded in the first column itself using indentation.

Input

I want to extract the different levels and flatten them like this - I have used openpyxl to read and write by cells, columns or rows. But I am not sure how I can approach the different levels of data all stored in one column using indentation. Any pointers on how I can approach the problem using python would be appreciated.

Excepted output


Viewing all articles
Browse latest Browse all 88126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>