擅长:python、mysql、java
<p>请尝试以下代码:</p>
<pre><code># Import pandas library
import pandas as pd
data = [['SunilNarine', 379.5], ['Shane Watson', 318.0], ['Virat Kohli', 543]]
df = pd.DataFrame(data, columns = ['PLAYER', 'Pts'])
# print the records
print(df[df.PLAYER=='Virat Kohli'])
print(df[df.PLAYER=='Shane Watson'])
print(df[df.Pts== 379.5])
</code></pre>
<p><a href="https://i.stack.imgur.com/aSgqP.png" rel="nofollow noreferrer">Please refer the Image</a></p>