File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Construct a `Kattis` object that takes in the username and the password.
1919``` py
2020from autokattis import Kattis
2121kt = Kattis(' username' , ' password' )
22+ kt = Kattis(' username' ) # which will then prompts you for the password
2223```
2324
2425where ` 'username' ` is your Kattis username/email and ` 'password' ` is your Kattis account password. ** Both should be provided as Python strings.**
@@ -60,6 +61,15 @@ kt.ranklist(university='National University of Singapore') # university leaderb
6061kt.ranklist(university = ' nus.edu.sg' ) # use university domain instead
6162```
6263
64+ ### Convert to DataFrame
65+
66+ As simple as this!
67+
68+ ``` py
69+ kt.problems().to_df()
70+ kt.ranklist().to_df()
71+ ```
72+
6373## Useful References
6474
6575- Old UI Kattis API wrapper: https://github.com/terror/kattis-api
Original file line number Diff line number Diff line change 1- import pandas as pd
2-
31from autokattis import Kattis
42from env import USER , PASSWORD
53
3230 kt .ranklist (university = 'nus.edu.sg' ) # use university domain instead
3331]:
3432 if ret :
35- print (pd . DataFrame ( ret ))
33+ print (ret . to_df ( ))
You can’t perform that action at this time.
0 commit comments