title: How I can fix key Error in OrdinalEncoder?
body: <p><a href="https://i.stack.imgur.com/cfjQg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cfjQg.png" alt="enter image description here" /></a>
  hello guys. Hi guys. As you can see in the picture, when I tried to use the target column, I encountered a key error. I tried different ways but it did not work. When I type:
  <code>y= train['Level']</code> or <code>y= train[['Level']]</code>
  or
  <code>print (Train['Level'])</code>
  or
  <code>enc = OrdinalEncoder() enc.fit(Train['Level'])</code></p>
  <p>and any other things about Level column this Error occured. how I can fix it? please help me &quot;|
  <a href="https://i.stack.imgur.com/NBPxN.png" rel="nofollow noreferrer">enter image description here</a></p>