Could you tell me how to group a table (from products1.txt file) like following:
Age;Name;Country
10;Valentyn;Ukraine
12;Igor;Russia
12;Valentyn;
10;Valentyn;Russia
So I can find out how many Valentyns have an empty "Country" cell.
I ran the following code:
import pandas as pd
df = pd.read_csv('d:\products1.txt', sep = ";")
result = df[(df["Name"] == "Valentyn") & (df["Country"] == None)]
But I get an error...