Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

x = bdata [ [ Counter Sales,Drive - through Sales,Location ] ] Traceback ( most recent call last ) : Cell In [ 4

x = bdata[["Counter Sales","Drive-through Sales","Location"]]
Traceback (most recent call last):
Cell In[41], line 1
x = bdata[["Counter Sales","Drive-through Sales","Location"]]
File ~\anaconda3\Lib\site-packages\pandas\core\frame.py:3899 in __getitem__
indexer = self.columns._get_indexer_strict(key, "columns")[1]
File ~\anaconda3\Lib\site-packages\pandas\core\indexes\base.py:6115 in _get_indexer_strict
self._raise_if_missing(keyarr, indexer, axis_name)
File ~\anaconda3\Lib\site-packages\pandas\core\indexes\base.py:6179 in _raise_if_missing
raise KeyError(f"{not_found} not in index")
KeyError: "['Location'] not in index"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions