CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 09:40:02 GMT
content-type: text/html
content-encoding: gzip
last-modified: Sat, 09 Nov 2019 20:18:29 GMT
cf-cache-status: DYNAMIC
vary: accept-encoding
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=IJTBILCtOOEoKPtqa%2BsQk44MU54xJQT867WZICTVSk4thVHOvnyde5byzy2P3xjeMrsllJwhhSh3IDAJ6IS7NnaJgZuNgUYurLDOYRCLY9iHVHMfcoa%2BL4oWwtX455WK00dK"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 966369ab3cab4e3d-BLR
server-timing: cfL4;desc="?proto=TCP&rtt=812&min_rtt=749&rtt_var=216&sent=8&recv=12&lost=0&retrans=0&sent_bytes=3408&recv_bytes=1030&delivery_rate=3717586&cwnd=253&unsent_bytes=0&cid=439a01dbe485f3c7&ts=288&x=0"
pandas.DataFrame.at — pandas 0.25.3 documentation
Scroll To Top
Navigation
Table Of Contents
- What's New in 0.25.2
- Installation
- Getting started
- User Guide
- Pandas ecosystem
- API reference
- Input/output
- General functions
- Series
- DataFrame
- Constructor
- Attributes and underlying data
- Conversion
- Indexing, iteration
- Binary operator functions
- Function application, GroupBy & window
- Computations / descriptive stats
- Reindexing / selection / label manipulation
- Missing data handling
- Reshaping, sorting, transposing
- Combining / joining / merging
- Time series-related
- Plotting
- Sparse accessor
- Serialization / IO / conversion
- Sparse
- Pandas arrays
- Panel
- Index objects
- Date offsets
- Frequencies
- Window
- GroupBy
- Resampling
- Style
- Plotting
- General utility functions
- Extensions
- Development
- Release Notes
Search
Enter search terms or a module, class or function name.
pandas.DataFrame.at¶
-
DataFrame.
at
¶ Access a single value for a row/column label pair.
Similar to
loc
, in that both provide label-based lookups. Useat
if you only need to get or set a single value in a DataFrame or Series.Raises: - KeyError
When label does not exist in DataFrame
See also
DataFrame.iat
- Access a single value for a row/column pair by integer position.
DataFrame.loc
- Access a group of rows and columns by label(s).
Series.at
- Access a single value using a label.
Examples
>>> df = pd.DataFrame([[0, 2, 3], [0, 4, 1], [10, 20, 30]], ... index=[4, 5, 6], columns=['A', 'B', 'C']) >>> df A B C 4 0 2 3 5 0 4 1 6 10 20 30
Get value at specified row/column pair
>>> df.at[4, 'B'] 2
Set value at specified row/column pair
>>> df.at[4, 'B'] = 10 >>> df.at[4, 'B'] 10
Get value within a Series
>>> df.loc[5].at['B'] 4