Source Code:
(back to article)
import pandas as pd # Create a sample DataFrame df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6], 'C': [7, 8, 9]}) # Get the value of the cell at row 0 and column 'A' value = df.at[0, 'A'] print(value)
Result:
Report an issue