add external files

This commit is contained in:
Shunsuke Shibayama 2024-02-11 23:04:16 +09:00
parent 7823243dbe
commit 92aa3ea078
122 changed files with 1087 additions and 0 deletions

View file

@ -0,0 +1,17 @@
.core = pyimport "core"
.io = pyimport "io"
.plotting = pyimport "plotting"
.util = pyimport "util"
{
.DataFrame!;
.Series!;
.Index;
} = pyimport "core/api"
{
.read_csv!;
} = pyimport "io/parsers"
{
.read_json!;
} = pyimport "io/json"

View file

@ -0,0 +1,5 @@
.algorithms = pyimport "algorithms"
.api = pyimport "api"
.frame = pyimport "frame"
.indexes = pyimport "indexes"
.series = pyimport "series"

View file

@ -0,0 +1,3 @@
{.DataFrame!;} = pyimport "./frame"
{.Series!;} = pyimport "./series"
{.Index;} = pyimport "./indexes/api"

View file

@ -0,0 +1,14 @@
{.Index;} = pyimport "./indexes/api"
# I := Nat, V := Obj
.DataFrame!: (C: Type, I: Type, V: Type) -> ClassType
.DataFrame!(C, I, V) <: Input(C)
.DataFrame!(C, I, V) <: Input(I)
.DataFrame!(C, I, V) <: Output(V)
.DataFrame!.
__call__: |K, V, I|(dic: {K: [V; _]} or Iterable(Iterable(V)), index: [I; _] := [Nat; _]) -> .DataFrame!(K, I, V)
shape: (Nat, Nat)
index: .Index(_) # TODO
head: |C, I, V|(self: .DataFrame!(C, I, V), tail: Nat := {5}) -> .DataFrame!(C, I, V)
tail: |C, I, V|(self: .DataFrame!(C, I, V), tail: Nat := {5}) -> .DataFrame!(C, I, V)
info!: (self: .DataFrame!(_, _, _)) => NoneType

View file

@ -0,0 +1 @@
{.Index;} = pyimport "./base"

View file

@ -0,0 +1,2 @@
.Index: (T: Type) -> ClassType
.Index(T) <: Output(T)

View file

@ -0,0 +1,8 @@
{.Index;} = pyimport "./indexes/api"
# K := Nat, V := Obj
.Series!: (K: Type, V: Type) -> ClassType
.Series!(K, V) <: Input(K)
.Series!(K, V) <: Output(V)
.Series!.
__call__: |K, V|(iterable: Iterable(V), index: [K; _] or .Index(K) := [Nat; _]) -> .Series! K, V

View file

@ -0,0 +1,7 @@
.api = pyimport "api"
.clipboads = pyimport "clipboards"
.common = pyimport "common"
.excel = pyimport "excel"
.html = pyimport "html"
.json = pyimport "json"
.parsers = pyimport "parsers"

View file

@ -0,0 +1,3 @@
{DataFrame!;} = pyimport "../../core/frame"
.read_json!: (path: PathLike) => DataFrame!

View file

@ -0,0 +1,3 @@
{DataFrame!;} = pyimport "../../core/frame"
.read_csv!: (path: PathLike) => DataFrame!

View file

View file

@ -0,0 +1 @@
.version = pyimport "version"

View file

@ -0,0 +1 @@
.Version: ClassType