Skip to content

Instantly share code, notes, and snippets.

@shanealynn
Last active October 6, 2016 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanealynn/2c61235a30cbe1dff15d81b90c216cfe to your computer and use it in GitHub Desktop.
Save shanealynn/2c61235a30cbe1dff15d81b90c216cfe to your computer and use it in GitHub Desktop.
# ix indexing works just the same as .loc when passed strings
data.ix[['Andrade']] == data.loc[['Andrade']]
# ix indexing works the same as .iloc when passed integers.
data.ix[[33]] == data.iloc[[33]]
# ix only works in both modes when the index of the DataFrame is NOT an integer itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment