Question: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in ----> 1 my_plot = sns.scatterplot(x='FY20', y='FY20AUG', data=df5) #DB not combining 2 3 my_plot.set(xlabel='FY18', ylabel='FY19') ~/anaconda3/lib/python3.7/site-packages/seaborn/relational.py in scatterplot(x,

--------------------------------------------------------------------------- TypeError Traceback (most recent call last)  in  ----> 1 my_plot = sns.scatterplot(x='FY20', y='FY20AUG', data=df5) #DB not combining 2 3 my_plot.set(xlabel='FY18', ylabel='FY19') ~/anaconda3/lib/python3.7/site-packages/seaborn/relational.py in scatterplot(x, y, hue, style, size, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, markers, style_order, x_bins, y_bins, units, estimator, ci, n_boot, alpha, x_jitter, y_jitter, legend, ax, **kwargs) 1333 x_bins=x_bins, y_bins=y_bins, 1334 estimator=estimator, ci=ci, n_boot=n_boot, -> 1335 alpha=alpha, x_jitter=x_jitter, y_jitter=y_jitter, legend=legend, 1336 ) 1337 ~/anaconda3/lib/python3.7/site-packages/seaborn/relational.py in __init__(self, x, y, hue, size, style, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, dashes, markers, style_order, x_bins, y_bins, units, estimator, ci, n_boot, alpha, x_jitter, y_jitter, legend) 850 851 plot_data = self.establish_variables( --> 852 x, y, hue, size, style, units, data 853 ) 854 ~/anaconda3/lib/python3.7/site-packages/seaborn/relational.py in establish_variables(self, x, y, hue, size, style, units, data) 131 x = data.get(x, x) 132 y = data.get(y, y) --> 133 hue = data.get(hue, hue) 134 size = data.get(size, size) 135 style = data.get(style, style) ~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in get(self, key, default) 2475 """ 2476 try: -> 2477 return self[key] 2478 except (KeyError, ValueError, IndexError): 2479 return default ~/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py in __getitem__(self, key) 2686 return self._getitem_multilevel(key) 2687 else: -> 2688 return self._getitem_column(key) 2689 2690 def _getitem_column(self, key): ~/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py in _getitem_column(self, key) 2696 2697 # duplicate columns & possible reduce dimensionality -> 2698 result = self._constructor(self._data.get(key)) 2699 if result.columns.is_unique: 2700 result = result[key] ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals.py in get(self, item, fastpath) 4128 4129 if isna(item): -> 4130 raise TypeError("cannot label index with a null key") 4131 4132 indexer = self.items.get_indexer_for([item]) TypeError: cannot label index with a null key

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!