I have the following dataframe where there are multiple data sets in one CSV file. In this case "Cash Balance", "Account Order History", and "Equities" (information left blank intentionally). I want to create the Cash Balance information into one dataframe and Account Order History into another. My thinking here was to look at the index of the first column and see if it equals "Cash Balance" and then read each row until the index = "Account Order History" and so on and so forth but not sure if this is the correct approach.
How do I code this out using python? Please help thanks!
Cash Balance
Date Time Type ID# Commission Amount Balance
11/9/20 9:30am Single 1234 2% $200 $2500
11/9/20 9:40am Single 1234 2% $200 $2500
11/9/20 9:45am Single 2234 2% $200 $2500
Account Order History
Notes Time Spread Side Qty Price Symbol Order
9:30am STOCK BUY 10 $42.87 NIO Filled
9:30am STOCK Sell 10 $43.87 NIO Filled
Equities