March 2019
Beginner to intermediate
288 pages
6h 21m
English
First, we can take a look at the Python code:
from pandas import DataFrameData = {'x': [25,34,22,27,33,33,31,22,35,34,67,54,57,43,50,57,59,52,65,47,49,48,35,33,44,45,38,43,51,46], 'y': [79,51,53,78,59,74,73,57,69,75,51,32,40,47,53,36,35,58,59,50,25,20,14,12,20,5,29,27,8,7] }df = DataFrame(Data,columns=['x','y'])print (df)
The last command (print(df)) is added so that if you run the code, you'll get to see the output, which should match the dataset that was defined.
Read now
Unlock full access