G
G
ganduras3812018-08-15 16:26:46
Python
ganduras381, 2018-08-15 16:26:46

How to check the value of a column and get it as a variable?

There is a ham table, it looks like this:
foo bar
0 1
We need to find out what foo is equal to, and, depending on this, dig. It is meant to be done with an if statement so that you can do this:
if foo == 0:
print('bar')

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question