title: Y = churn.iloc[:, 18].values
body: <p>Trying to import my dataset(18 columns counting from 0) i got this error:</p>
  
  <blockquote>
    <p>File "C:/Users/ASUS/PycharmProjects/PA/BestAcc.py", line 23, in
    
        Y = churn.iloc[:, 18].values   File "C:\Python35\lib\site-packages\pandas\core\indexing.py", line 1472, in
    <strong>getitem</strong>
        return self._getitem_tuple(key)   File "C:\Python35\lib\site-packages\pandas\core\indexing.py", line 2013, in
    _getitem_tuple
        self._has_valid_tuple(tup)   File "C:\Python35\lib\site-packages\pandas\core\indexing.py", line 222, in
    _has_valid_tuple
        self._validate_key(k, i)   File "C:\Python35\lib\site-packages\pandas\core\indexing.py", line 1957, in
    _validate_key
        self._validate_integer(key, axis)   File "C:\Python35\lib\site-packages\pandas\core\indexing.py", line 2009, in
    _validate_integer
        raise IndexError("single positional indexer is out-of-bounds") IndexError: single positional indexer is out-of-bounds</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>import numpy as np
  
  import pandas as pd
  
  import matplotlib.pyplot as plt
  
  import seaborn as sns
  
  churn = pd.read_csv("HR.csv")
  
  #import colums except the first one in the dataset
  
  X = churn.iloc[:, 1:18].values
  
  Y = churn.iloc[:, 18].values
  </code></pre>