Good afternoon everyone!
I'm building a pipeline in SAS Vyia for learners and I would like to plot (if possible) a correlation matrix by computing it in python language (I attached the pipeline).
The code I've written so far is this on:
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
bank_df = pd.read_csv(dm_inputdf + "node_data.csv")
corr_df = bank_df.corr(method = "pearson")
plt.figure(figsize=(10,8))
sns.heatmap(corr_df, annot=True)
plt.show()
Unfortunately I cannot execute it because it keeps giving me error.
Actually, I would like to print a correlation matrix of the entire datafile but I can't understand which kind of path I should use..
Thank you so much,
Sara
Good afternoon @Cynthia_sas ,
yes, you are totally right. I use Vyia for learners for my university degree in Data Science but I'm not enrolled in SAS Academy for Data Science.
I am terribly sorry for the bother and for my mistake.
Thank you so much for the kind reply,
Sara
This is a knowledge-sharing community for learners in the Academy. Find answers to your questions or post here for a reply.
To ensure your success, use these getting-started resources:
Estimating Your Study Time
Reserving Software Lab Time
Most Commonly Asked Questions
Troubleshooting Your SAS-Hadoop Training Environment
Ready to level-up your skills? Choose your own adventure.