-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathInMemoryDatasets.jl
209 lines (189 loc) · 4.08 KB
/
InMemoryDatasets.jl
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
module InMemoryDatasets
using TableTraits,IteratorInterfaceExtensions
using Reexport
using Compat
using Printf
using PrettyTables, REPL
using Markdown
using PooledArrays
@reexport using Missings, InvertedIndices
@reexport using Statistics
@reexport using Dates
import DataAPI,
DataAPI.All,
DataAPI.Between,
DataAPI.Cols,
DataAPI.describe,
DataAPI.innerjoin,
DataAPI.outerjoin,
DataAPI.rightjoin,
DataAPI.leftjoin,
DataAPI.semijoin,
DataAPI.antijoin,
DataAPI.nrow,
DataAPI.ncol,
# DataAPI.crossjoin,
Tables,
Tables.columnindex
const IMD = InMemoryDatasets
export
# types
IMD,
@c_str,
Characters,
AbstractDataset,
DatasetColumns,
DatasetColumn,
SubDataset,
SubDatasetColumn,
Dataset,
GatherBy,
GroupBy,
Between,
splitter,
# functions
nrow,
ncol,
rename!,
rename,
duplicates,
getformat,
setformat!,
removeformat!,
content,
completecases,
dropmissing,
dropmissing!,
flatten,
flatten!,
repeat!,
select,
select!,
delete,
mapcols,
insertcols!,
mask,
compare,
groupby!,
groupby,
gatherby,
describe,
issorted!,
unsort!,
ungroup!,
modify,
modify!,
combine,
setinfo!,
getinfo,
eachgroup,
# allowmissing!,
# from byrow operations
byrow,
nunique,
# from stat
lag,
lag!,
lead,
lead!,
stdze,
stdze!,
rescale,
topk,
topkperm,
cummax,
cummax!,
cummin,
cummin!,
ffill!,
ffill,
bfill!,
bfill,
# from join
innerjoin,
outerjoin,
leftjoin,
leftjoin!,
# rightjoin,
antijoin,
semijoin,
antijoin!,
semijoin!,
closejoin,
closejoin!,
update,
update!
include("other/index.jl")
include("characters/characters.jl")
include("other/utils.jl")
include("stat/non_hp_stat.jl")
include("stat/hp_stat.jl")
include("stat/stat.jl")
include("abstractdataset/abstractdataset.jl")
include("abstractdataset/dscol.jl")
# create dataset
include("dataset/constructor.jl")
# get elements
include("dataset/getindex.jl")
# set elements
include("dataset/setindex.jl")
# delete and append observations
include("dataset/del_and_append.jl")
# concatenate
include("dataset/cat.jl")
# byrow operations
include("byrow/util.jl")
include("byrow/row_functions.jl")
include("byrow/hp_row_functions.jl")
include("byrow/byrow.jl")
include("byrow/doc.jl")
# other functions
include("dataset/other.jl")
include("subdataset/subdataset.jl")
include("datasetrow/datasetrow.jl")
include("other/broadcasting.jl")
# modifying dataset
include("dataset/modify.jl")
include("dataset/combine.jl")
include("abstractdataset/selection.jl")
# sorting
include("sort/util.jl")
include("sort/qsort.jl")
include("sort/int.jl")
include("sort/int_any.jl")
include("sort/sortperm.jl")
include("sort/sort.jl")
include("sort/gatherby.jl")
include("sort/groupby.jl")
# transpose
include("dataset/transpose.jl")
# joins
include("join/join.jl")
include("join/join_dict.jl")
include("join/closejoin.jl")
include("join/update.jl")
include("join/compare.jl")
include("join/main.jl")
include("abstractdataset/iteration.jl")
include("abstractdataset/prettytables.jl")
include("abstractdataset/show.jl")
include("datasetrow/show.jl")
include("abstractdataset/io.jl")
include("other/tables.jl")
# taking care of missings in other packages
include("missings/missings.jl")
# ds stat
include("stat/ds_stat.jl")
# precompile
include("precompile/precompile.jl")
include("precompile/warmup.jl")
include("precompile/create_sysimage.jl")
_precompile()
function __init__()
if Threads.nthreads() == 1
if get(ENV, "IMD_WARN_THREADS", "1") == "1"
@warn "Julia started with single thread, to enable multithreaded functionalities in InMemoryDatasets.jl start Julia with multiple threads."
end
end
end
end