<jupyter_start><jupyter_text>Indexing a using Dataframe.ix[ ] :<jupyter_code>Note: The .ix indexer has been deprecated in recent versions of Pandas.<jupyter_output><empty_output><jupyter_text>Selecting a single row using .ix[ ] as .loc[ ]<jupyter_code># importing pandas package 
import pandas as pd
# making data frame from csv file

#url = "C:/Users/deepusuresh/Documents/Data Science/01. Python/3. PANDAS/3. Rows and Columns"
data = pd.read_csv("C:/Users/deepusuresh/Documents/Data Science/01. Python/3. PANDAS/3. Rows and Columns/nba.csv", index_col ="Name")
# retrieving row by ix method 

first = data.ix["<NAME>"] 
first<jupyter_output>C:\Users\deepusuresh\Anaconda3\lib\site-packages\ipykernel_launcher.py:3: DeprecationWarning: 
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
  This is separate from the ipykernel package so we can avoid doing imports until<jupyter_text>Selecting a single row using .ix[ ] as .iloc[ ]<jupyter_code># retrieving row by ix method 

first = data.ix[1] 
first<jupyter_output>C:\Users\deepusuresh\Anaconda3\lib\site-packages\ipykernel_launcher.py:3: DeprecationWarning: 
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
  This is separate from the ipykernel package so we can avoid doing imports until
{'fraction_non_alphanumeric': 0.10109465550547328, 'fraction_numerical': 0.008370895041854474, 'mean_word_length': 5.118110236220472, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '268748', 'license': 'CNRI-Python', 'n_tokens_mistral': 554, 'n_tokens_neox': 528, 'n_words': 149, 'path': '5_Indexing/3_Indexing_ix.ipynb', 'repo_name': 'sureshmecad/Pandas', 'size': '1560'}