filmov
tv
Get Index of Rows with Match in Column in Python (Example) | Find Value | index Attribute & tolist()

Показать описание
Python code of this video:
import pandas as pd # Import pandas library
data = pd.DataFrame({'x1':['a', 'b', 'c', 'd', 'e', 'f'], # Create example DataFrame
'x2':[5, 2, 5, 5, 8, 1],
'x3':['A', 'B', 'C', 'D', 'E', 'F']})
print(data) # Print example DataFrame
# [0, 2, 3]
Follow me on Social Media:
import pandas as pd # Import pandas library
data = pd.DataFrame({'x1':['a', 'b', 'c', 'd', 'e', 'f'], # Create example DataFrame
'x2':[5, 2, 5, 5, 8, 1],
'x3':['A', 'B', 'C', 'D', 'E', 'F']})
print(data) # Print example DataFrame
# [0, 2, 3]
Follow me on Social Media: