Skip to content

Instantly share code, notes, and snippets.

@abelsiqueira
Created January 10, 2022 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abelsiqueira/0e5b43e4a724b2fc704d7694eacfd1e5 to your computer and use it in GitHub Desktop.
Save abelsiqueira/0e5b43e4a724b2fc704d7694eacfd1e5 to your computer and use it in GitHub Desktop.
using PyCall
pd = pyimport("pandas")
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
data = pd.read_csv(download(url), header=nothing, names=["x1", "x2", "x3", "x4", "target"])
sns = pyimport("seaborn")
plt = pyimport("matplotlib.pyplot")
plt.figure()
sns.pairplot(data=data, hue="target")
plt.savefig(joinpath(@__DIR__, "data.png"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment