Split Dataframe into multiple dataframes after a specific value
<p>I am trying to split a dataframe in the below format into multiple dataframes based on specific value.</p>

<pre><code>Column0              Column1     Column2  Column3
Question             Answer      Reason   30
It is received?      XXX         YYY      27
Deducted             FDF         RES      64
Transferred?         WWW         RRR      64
Transport Services   Passgener   Carrier  30
Distance             KKK         WDF      27
Return               PPP         LMN      64
</code></pre>

<p>In the above dataframe,I want to split the rows starting from Event2 or Code = 30 (specific color code or Header code) into separate dataframe and rest (which are above) into other dataframe (There may be more than two events also.).</p>

<p>I have tried few codes but most of them are for filtering purpose.</p>

<p>Expected output is:
Dataframe1:</p>

<pre><code>Question             Answer      Reason   30
It is received?      XXX         YYY      27
Deducted             FDF         RES      64
Transferred?         WWW         RRR      64
</code></pre>

<p>Dataframe2:</p>

<pre><code>Transport Services   Passgener   Carrier  30
Distance             KKK         WDF      27
Return               PPP         LMN      64
</code></pre>

<p>Please help as I am new to python.</p>