Hi, Bill
I was trying to do something similar to what you want to do. I am sure there are lots of different ways to do it, but the way I went about it was to:
1) Install PostgreSQL
2) Install Arelle
4) Use Arelle command line to load individual companies' 10-Q/10-K into the DB schema.
5) Create SQL views on top of the tables in the schema to reproduce Balance Sheet/Income Statement/Cash Flow Statement for a given quarter for a given company
Once you have the information in a view, it should be an easier exercise to get the result sets of the views into a pandas dataframe for further analysis.
If the tutorial is headed in the right direction for what you want to do, let me know, and I will try to add to it in the coming weeks.
Good luck - Regards from Mike G.