Determine if Value Exists in pandas DataFrame in Python (Sample) | values Attribute & print Function

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

import pandas as pd # Load pandas library

data = pd.DataFrame({'x1':[1, 2, 7, 1, 3, 4], # Create example DataFrame
'x2':[2, 1, 1, 3, 1, 3],
'x3':range(6, 0, - 1)})
print(data) # Print example DataFrame

# True

# False

Follow me on Social Media:

Рекомендации по теме