How to create these two plots from two arrays with numbers?
Changed the values for better representation
# Gathering Dataframe
import pandas as pd 
data = [[1, 5], [1, 6], [2, 5], [0,0], [5,8], [20,4]]  
df = pd.DataFrame(data, columns = ['xx', 'yy']) 
df

#Drawing the plot (Scatter Plot)
from matplotlib.pyplot import *

plott = df.plot.scatter(x='xx', y='yy', title= &quot;Scatter plot between two variables X 
and Y&quot;);

plott


# (line plot connecting the scatter plots)
plt.plot( 'xx', 'yy', data=df, linestyle='-', marker='o')
plt.show()