question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New methods `iat` and `at` to access single value in DataFrame/Series

See original GitHub issue

Regarding your point on:

Should I be using a different method just to get the single value of cell X/Y?

I think we need to add a new method for that. Something like [iat](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.iat.html) in pandas. I’ll create an issue for it.

_Originally posted by @risenW in https://github.com/javascriptdata/danfojs/discussions/348#discussioncomment-1970316_

Acceptance

  • iat method exists and supports retrieving single values by row and/or column index
  • at method exists and supports retrieving single values by row and/or column labels

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KingWebsitescommented, Jan 14, 2022

Great news. Could you add an “at” method too, which is the same but uses named row and column labels? https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.at.html

0reactions
risenWcommented, Jan 14, 2022

Unfortuately I don’t have the skillset to contribute. After years as a front-end dev who just used jQuery I’ve only spent a few months learning more modern js. I’m hoping to be in a position to do so at some point in the future though.

No worries at all 👏🏻Thanks for using the library and taking out time to give us feedback. It is also a very important contribution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas: Get/Set element values with at, iat, loc, iloc - nkmk note
You can access a single value with loc and iloc as well as with at and iat . However, at and iat are...
Read more >
pandas.Series — pandas 1.5.2 documentation
Access a single value for a row/column pair by integer position. iloc. Purely integer-location based indexing for selection by position. index.
Read more >
Python | Pandas Dataframe.iat[ ] - GeeksforGeeks
This method works similarly to Pandas iloc[] but iat[] is used to return only a single value and hence works faster than it....
Read more >
Series — PySpark 3.2.0 documentation - Apache Spark
Series.iat. Access a single value for a row/column pair by integer position. ... Generate a new DataFrame or Series with the index reset....
Read more >
Pandas Set DataFrame Values – .at[], .iat[] - Data Independent
Pandas Set Values - Update the values of a single cell via Pandas .at() and ... to set/get a single DataFrame values, .at[]...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found