Learn Before
Code

Code Example of DataFrame

For example, lets create some data:

import pandas as pd

data = {"Trees": [['Blue','Brown','Red']], "Age": [[3,6,10]]}

  • The next step is to put this data in to the Data frame object:

frame = pd.DataFrame(data)

print(frame)

0

1

Updated 2021-05-01

Tags

Python Programming Language

Data Science