Skip to content

Commit

Permalink
Try isnull()
Browse files Browse the repository at this point in the history
  • Loading branch information
doprdele committed Mar 18, 2024
1 parent 24ceb45 commit fad50f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def css_mac_pc(path):

# totals PC and MAC over the years
df = pd.read_csv(path + 'cssTypeOfRequestPCMac.tsv', delimiter="\t")
df["sum"] = df.sum(axis=1)
df["sum"] = df.isnull().sum(axis=1)
df2 = df[["Year", "Type", "sum"]]

df_total = df2[df2["Type"] == "PC"][["Year", "sum"]]
Expand Down

0 comments on commit fad50f3

Please sign in to comment.