Skip to content

Instantly share code, notes, and snippets.

@kojix2
Created March 8, 2019 02:03
Show Gist options
  • Save kojix2/3d0416a034e91565bfa9751a17d4cf3b to your computer and use it in GitHub Desktop.
Save kojix2/3d0416a034e91565bfa9751a17d4cf3b to your computer and use it in GitHub Desktop.
pycall_seaborn
require 'pycall'
require 'pycall/import'
include PyCall::Import
require 'matplotlib/iruby'
Matplotlib::IRuby.activate
pyimport :pandas, as: :pd
pyimport :seaborn, as: :sns
url="https://raw.githubusercontent.com/pandas-dev/pandas/master/pandas/tests/data/iris.csv"
df = pd.read_csv(url)
sns.pairplot(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment