Sep-30-2019, 05:16 AM
Is there any particular reason to import ths way:
from pandas import DataFrame, read_csv import pandas as pdYou could use .value_conts() for counting values:
>>> df = pd.DataFrame({'numbers': range(1, 6), 'letters': [*'abaca']}) >>> df numbers letters 0 1 a 1 2 b 2 3 a 3 4 c 4 5 a >>> df.letters.value_counts()['a'] 3
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.