# 8.3:  DataFrame from python struct.  Use this 3x3 list of lists to build a DataFrame.  Add a
# keyword argument columns=[] to the DataFrame to assign column labels, and index=[] to assign row
# labels.  Print the DataFrame.

import pandas as pd

# Sample data in the form of a list of lists
data = [
    [1, 2.5, 'apple'],
    [2, 3.0, 'banana'],
    [3, 4.2, 'orange']
]

df = pd.DataFrame(data, columns=['num', 'float', 'text'],
                        index=['a', 'b', 'c'])

print(df)

