title: Store poker game data into dataframe
body: <p>I extracted lines from 4 txt files into a dataframe (col1: files col2:lines). The txt files contain Pluribus poker game data (see original article here: <a href="http://kevinwang.us/lets-analyze-pluribuss-hands/" rel="nofollow noreferrer">http://kevinwang.us/lets-analyze-pluribuss-hands/</a>)</p>
  <p><strong>My goal is to store all these lines into a dataframe, where each row is one game, who’s in what seat, small blind, big blind, how much $$ was raised/bet/called in each of the hole/turn/River/flop rounds, and each players last move (call/raise/check/bet/fold) in every round.</strong></p>
  <p>I’ve figured out how to store the lines from poker hand till all players have received their 2 cards but I don’t know how to store the lines past that. I was thinking multiple while loops ie while line != “<em><strong>SHOWDOWN</strong></em>”{store in dataframe} but idk… Every game is different. For example, some games don’t reach a “river” round and some don’t reach a “showdown”.</p>
  <p><strong>Here’s example 1 of 1 poker game that reached the showdown round:</strong>
  PokerStars Hand #30007: Hold'em No Limit (50/100) - 2019/07/11 08:20:07 ET
  <br> Table 'Pluribus Session 30' 6-max (Play Money) Seat #6 is the button
  <br> Seat 1: Gogo (10000 in chips)
  <br> Seat 2: Budd (10000 in chips)
  <br> Seat 3: Eddie (10000 in chips)
  <br> Seat 4: Bill (10000 in chips)
  <br> Seat 5: Pluribus (10000 in chips)
  <br> Seat 6: MrWhite (10000 in chips)
  <br> Gogo: posts small blind 50
  <br> Budd: posts big blind 100
  <br>*** HOLE CARDS ***
  <br> Dealt to Gogo [5h Jc]
  <br> Dealt to Budd [Jd 9h]
  <br> Dealt to Eddie [6s 5c]
  <br> Dealt to Bill [Ah 7h]
  <br> Dealt to Pluribus [2s 2d]
  <br> Dealt to MrWhite [3h Ts]
  <br> Eddie: folds
  <br> Bill: raises 125 to 225
  <br> Pluribus: folds
  <br> MrWhite: folds
  <br> Gogo: folds
  <br> Budd: calls 125
  <br>*** FLOP *** [3s Jh 2h]
  <br> Budd: checks
  <br> Bill: bets 250
  <br> Budd: calls 250
  <br>*** TURN *** [3s Jh 2h] [Tc]
  <br> Budd: checks
  <br> Bill: bets 750
  <br> Budd: calls 750
  <br>*** RIVER *** [3s Jh 2h] [Tc] [Ks]
  <br> Budd: checks
  <br> Bill: checks
  <br>*** SHOWDOWN ***
  <br> Budd: shows [Jd 9h]
  <br> Budd collected 2500.0 from pot
  <br>*** SUMMARY ***
  <br> Total pot 2500 | Rake 0
  <br> Board [3s Jh 2h Tc Ks]
  <br> Seat 2: Budd showed [Jd 9h] and won <br>(2500.0)
  <br> Seat 4: Bill showed [Ah 7h] and lost</p>
  <p><strong>Here’s one where all but one folded right after their 2 cards were dealt:</strong></p>
  <p>PokerStars Hand #30006: Hold'em No Limit (50/100) - 2019/07/11 08:20:06 ET
  <br>  Table 'Pluribus Session 30' 6-max (Play Money) Seat #6 is the button
  <br>  Seat 1: MrWhite (10000 in chips)
  <br>  Seat 2: Gogo (10000 in chips)
  <br>  Seat 3: Budd (10000 in chips)
  <br>  Seat 4: Eddie (10000 in chips)
  <br>  Seat 5: Bill (10000 in chips)
  <br>  Seat 6: Pluribus (10000 in chips)
  <br>  MrWhite: posts small blind 50
  <br>  Gogo: posts big blind 100
  <br> *** HOLE CARDS ***
  <br>  Dealt to MrWhite [Qd 4c]
  <br>  Dealt to Gogo [7h 9d]
  <br>  Dealt to Budd [6s 3h]
  <br>  Dealt to Eddie [7s 9c]
  <br>  Dealt to Bill [Jc Kc]
  <br>  Dealt to Pluribus [Ks 7c]
  <br>  Budd: folds
  <br>  Eddie: folds
  <br>  Bill: raises 125 to 225
  <br>  Pluribus: folds
  <br>  MrWhite: folds
  <br>  Gogo: folds
  <br>  Uncalled bet (125) returned to Bill
  <br>  Bill collected 250.0 from pot
  <br> *** SUMMARY ***
  <br>  Total pot 250 | Rake 0</p>