CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 03:58:04 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=VQeKA5e78mXuB%2FNm5AtqIV1mlV4uDjmKND2e41cHBUG0ErulK%2FvLlzhU32FUmih6h%2BXoBJZAbbHlhTU%2BoQCZaVp64ANROaWKUU0SFPj7mYw0J22BGx7M%2Fv4GbpGG8jTnrV%2B4"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 966174bd48080bc9-BLR
server-timing: cfL4;desc="?proto=TCP&rtt=753&min_rtt=726&rtt_var=226&sent=6&recv=11&lost=0&retrans=0&sent_bytes=3385&recv_bytes=1030&delivery_rate=3940136&cwnd=252&unsent_bytes=0&cid=76da80820dff42d5&ts=540&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