-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdescribe.py
executable file
·31 lines (28 loc) · 1.3 KB
/
describe.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /usr/bin/env python3
# *************************************************************************** #
# #
# ::: :::::::: #
# describe.py :+: :+: :+: #
# +:+ +:+ +:+ #
# By: darodrig <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/11/01 13:22:39 by darodrig #+# #+# #
# Updated: 2020/11/01 13:22:39 by darodrig ### ########.fr #
# #
# *************************************************************************** #
from sys import argv as av
import pandas as pd
from dslr.data import describe_
from dslr.math import percentile_
import numpy as np
if __name__ == "__main__":
if (len(av) < 2):
print("USAGE: ./describe.py [dataset].csv")
exit(1)
try:
df = pd.read_csv(av[1])
except Exception:
print("No such file")
exit(1)
describe_(df)
exit(0)