Get Specific Element from pandas DataFrame in Python (2 Examples) | Select Cell Value | Column Name

preview_player
Показать описание
Python code of this video:

import pandas as pd # Load pandas library

data = pd.DataFrame({'x1':range(80, 71, - 1), # Create pandas DataFrame
'x2':['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'],
'x3':range(27, 18, - 1),
'x4':[1, 5, 2, 1, 1, 2, 4, 3, 1]})
print(data) # Print pandas DataFrame

print(data_cell_1) # Print extracted value
# 22

print(data_cell_2) # Print extracted value
# b

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

So what is the difference between 'iat' and 'at'? Where would you use one vs the other?

DinoJazvin-jg