Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preprocess.py: KeyError: 'shirt' #3

Open
autogyro opened this issue Jul 23, 2018 · 0 comments
Open

preprocess.py: KeyError: 'shirt' #3

autogyro opened this issue Jul 23, 2018 · 0 comments

Comments

@autogyro
Copy link

Dear NMERIPO,
while i run the program preprocess.py ,it said :KeyError: 'shirt' , the detail as following.
please help me to take a look. I downloaded ClothingAttributeDataset.zip, maybe that something less than your did. if you give me your cvs data: category_test.csv, it will be great appreciated!
cheers
Edward

File "D:/clothing/Identifying-Clothing-Attributes-master/preprocess.py", line 59, in
print (key, round(100 * category_df[key].value_counts()[1]/ float(category_df.shape[0]), 2))

File "D:\dev\IDE\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2139, in getitem

File "D:\dev\IDE\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2146, in _getitem_column

File "D:\dev\IDE\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1842, in _get_item_cache

File "D:\dev\IDE\Anaconda3\lib\site-packages\pandas\core\internals.py", line 3843, in get

File "D:\dev\IDE\Anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 2527, in get_loc

File "pandas/_libs/index.pyx", line 117, in pandas._libs.index.IndexEngine.get_loc

File "pandas/_libs/index.pyx", line 139, in pandas._libs.index.IndexEngine.get_loc

File "pandas/_libs/hashtable_class_helper.pxi", line 1265, in pandas._libs.hashtable.PyObjectHashTable.get_item

File "pandas/_libs/hashtable_class_helper.pxi", line 1273, in pandas._libs.hashtable.PyObjectHashTable.get_item

KeyError: 'shirt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant