You can create a DataFrame from a list of simple tuples, and can even choose the specific elements of the tuples you want to use. Here we will create a DataFrame using all of the data in each tuple except for the last element.
import pandas as pd
data = [
('p1', 't1', 1, 2),
('p1', 't2', 3, 4)...