Skip to content

Instantly share code, notes, and snippets.

@sleepingcat4
Created April 10, 2024 21:36
Show Gist options
  • Save sleepingcat4/bb39e95ada2622977a7d34010ad2aa25 to your computer and use it in GitHub Desktop.
Save sleepingcat4/bb39e95ada2622977a7d34010ad2aa25 to your computer and use it in GitHub Desktop.
import pandas as pd
import matplotlib.pyplot as plt
# Read the CSV file
df = pd.read_csv('your_file.csv')
# Extract the columns
X = df.iloc[:, 0] # Column 1
Y = df.iloc[:, 1] # Column 2
# Plotting
plt.scatter(X, Y)
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Template # Change it before applying')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment