Skip to content

Commit

Permalink
#5 Added tables of unique uids per transaction date and registration …
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
oislen committed Jun 10, 2023
1 parent 8d3d9cc commit 63e5731
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions report/qa.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ valfreqplot(data = data, col = 'transaction_error_code', bins = 50)
data['uid'].value_counts().head(20)
```

```{python}
data.groupby(by = ['uid', 'registration_date'], as_index = False).size().groupby(by = 'registration_date', as_index = False).agg({'uid':'nunique'}).sort_values('uid')
```

```{python}
data.groupby(by = ['uid', 'transaction_date'], as_index = False).size().groupby(by = 'transaction_date', as_index = False).agg({'uid':'nunique'}).sort_values('uid')
```


```{python}
data.loc[data['uid'] == 5601785694208571, :]
Expand Down

0 comments on commit 63e5731

Please sign in to comment.