Hi I am new to python and working with jupyter notebook, so any help would be greatly appreciated!.
I am having trouble plotting a scatter matrix. I have imported my csv file and I have a column with 'Names' of drugs. So I want to get how many times this drug occurs so I use
name = Crimes['drug name'].value_counts()
name
This returns how many times a specific drug has been called as 'drug name' is the column in my csv file
I have tried to plot a scatter matrix like so:
%matplotlib inline
import matplotlib.pyplot as plt
from pandas.plotting import scatter_matrix
scatter_matrix(name, alpha=0.2, figsize=(6, 6), diagonal='kde')
However I am getting an error 'Series' object has no attribute 'columns'
Does anyone know how I can fix this issue? Thanks in advance