Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kwgoodman/la
/ functions
Functions
1,228 in github.com/kwgoodman/la
⨍
Functions
1,228
◇
Types & classes
71
↓ 382 callers
Function
printfail
(theory, practice, header=None)
la/util/testing.py:243
↓ 264 callers
Method
isnan
Returns a bool larry with NaNs replaced by True, non-NaNs False. Returns ------- out : larry Returns a c
la/deflarry.py:510
↓ 202 callers
Method
all
True if all elements along specified axis are True; False otherwise. Parameters ---------- axis : {int, None
la/deflarry.py:1427
↓ 131 callers
Function
noreference
Return True if there are no shared references
la/util/testing.py:255
↓ 98 callers
Method
_write
Append a piece of text to the current line.
doc/sphinxext/compiler_unparse.py:62
↓ 83 callers
Method
copy
Return a copy of a larry. Examples -------- >>> y = larry([1, 2], [['a', 'b']]) >>> z = y.copy()
la/deflarry.py:4756
↓ 72 callers
Function
lar
()
la/tests/empty_larry_test.py:9
↓ 63 callers
Method
_dispatch
_dispatcher function, _dispatching tree type T to method _T.
doc/sphinxext/compiler_unparse.py:75
↓ 48 callers
Method
copylabel
Return a copy of a larry's label. Examples -------- >>> y = larry([1, 2], [['a', 'b']])
la/deflarry.py:4776
↓ 35 callers
Method
sum
Sum of values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional Axis to
la/deflarry.py:960
↓ 27 callers
Function
align
Align two larrys using one of five join methods. Parameters ---------- lar1 : larry One of the input larrys. Must have t
la/flarry.py:18
↓ 26 callers
Function
binaryop
Binary operation on two larrys using given function and join method. Parameters ---------- func : function A function th
la/flarry.py:656
↓ 24 callers
Function
missing_marker
Missing value marker, which is based on dtype, for the given data. Parameters ---------- lar : {larry, ndarray} Input da
la/missing.py:65
↓ 22 callers
Function
ismissing
A bool Numpy array with element-wise marking of missing values. Parameters ---------- lar : {larry, ndarray} Input data
la/missing.py:109
↓ 22 callers
Method
morph
Reorder the elements along the specified axis. If an element in `label` does not exist in the larry, NaNs will be us
la/deflarry.py:3121
↓ 20 callers
Function
add
Sum of two larrys using given join and fill methods. Parameters ---------- lar1 : larry The larry on the left-hand side
la/flarry.py:791
↓ 20 callers
Method
any
True if any element along specified axis is True; False otherwise. Parameters ---------- axis : {int, None}, optiona
la/deflarry.py:1381
↓ 19 callers
Method
flatten
Return a copy of the larry after collapsing into one dimension. The elements of the label become tuples. Pa
la/deflarry.py:4111
↓ 19 callers
Function
ranking
Normalized ranking treating NaN as missing and averaging ties. Parameters ---------- x : ndarray Data to be ranked.
la/farray/normalize.py:126
↓ 19 callers
Method
ranking
Rank elements treating NaN as missing and averaging ties. Parameters ---------- axis : {int, None} optional
la/deflarry.py:2989
↓ 16 callers
Method
_fill
Indent a piece of text, according to the current indentation level
doc/sphinxext/compiler_unparse.py:55
↓ 16 callers
Function
correlation
Correlation between two Numpy arrays along the specified axis. This is not a cross correlation function. If the two input arrays have
la/farray/misc.py:37
↓ 16 callers
Method
get
Get one x element given a list of label names. Give one label name (not label index) for each dimension. Pa
la/deflarry.py:2012
↓ 16 callers
Method
merge
Merge, or optionally update, a larry with a second larry. See larry.merge for details. Note: the entire lar
la/io.py:166
↓ 15 callers
Method
isfinite
Returns a bool larry with NaNs and Inf replaced by True, others False. Returns ------- out : larry Retur
la/deflarry.py:537
↓ 15 callers
Method
mean
Mean of values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional Axis to
la/deflarry.py:1060
↓ 14 callers
Function
__Pyx_PyInt_AsLong
la/src/cflabel.c:2038
↓ 14 callers
Method
cumsum
Cumulative sum, ignoring NaNs. Parameters ---------- axis : int axis to cumsum along, no default
la/deflarry.py:291
↓ 13 callers
Method
move_sum
Moving window sum along the specified axis, ignoring NaNs. Parameters ---------- window : int Th
la/deflarry.py:2521
↓ 13 callers
Method
take
A copy of the specified elements of a larry along an axis. This method does the same thing as "fancy" indexing (indexing lar
la/deflarry.py:1730
↓ 12 callers
Method
__reduce
(self, op, default=np.nan, **kwargs)
la/deflarry.py:1352
↓ 12 callers
Method
fill
Inplace filling of data array with specified value. Parameters ---------- fill_value : {scalar, string, etc}
la/deflarry.py:2207
↓ 11 callers
Method
keys
Return a list of larry names (keys) in archive.
la/io.py:127
↓ 11 callers
Method
prod
Product of values along axis, ignoring NaNs. Parameters ---------- axis : {None, int}, optional Axis to
la/deflarry.py:996
↓ 11 callers
Method
vacuum
Remove all rows and/or columns that contain all NaNs. Parameters ---------- axis : None or int
la/deflarry.py:3825
↓ 10 callers
Method
check_function
check a method of larry - comparison helper function
la/tests/deflarry_nose_test.py:138
↓ 10 callers
Function
nans
Works like ones and zeros except that the fill value is NaN (by default) The fill value is determined by dtype. The fill value is NaN fo
la/missing.py:7
↓ 9 callers
Function
align_axis
Align many larrys along potentially different axes. Parameters ---------- lars : array_like A collection (list, tuple, set,
la/flarry.py:379
↓ 9 callers
Method
astype
Copy of larry cast to specified type. Parameters ---------- dtype: string or data-type Typecode
la/deflarry.py:3980
↓ 9 callers
Function
heading
(text)
la/util/testing.py:119
↓ 9 callers
Function
isscalar
Returns True if input is a scalar; False otherwise. Parameters ---------- x : any Input can be of any type. Retu
la/util/misc.py:111
↓ 9 callers
Function
movingsum
Moving sum ignoring NaNs, optionally normalized for missing (NaN) data. Parameters ---------- arr : ndarray Input array.
la/farray/move.py:288
↓ 9 callers
Method
shuffle
Shuffle the data inplace along the specified axis. Unlike numpy's shuffle, this shuffle takes an axis argument. The
la/deflarry.py:3605
↓ 8 callers
Method
cumprod
Cumulative product, ignoring NaNs. Parameters ---------- axis : int axis to find the cumulative
la/deflarry.py:356
↓ 8 callers
Method
demean
Subtract the mean along the specified axis. Parameters ---------- axis : {int, None}, optional T
la/deflarry.py:2900
↓ 8 callers
Method
demedian
Subtract the median along the specified axis. Parameters ---------- axis : {int, None}, optional
la/deflarry.py:2930
↓ 8 callers
Method
lag
Lag the values along the specified axis. Parameters ---------- nlag : int Number of periods (row
la/deflarry.py:3370
↓ 8 callers
Function
sortby
Sort 2d larry by the row or column corresponding to given label element. Parameters ---------- lar : larry A 2d input l
la/flarry.py:1701
↓ 8 callers
Method
std
Standard deviation of values along axis, ignoring NaNs. `float64` intermediate and return values are used for integer inputs.
la/deflarry.py:1163
↓ 8 callers
Method
tolist
Convert to a flattened list. See Also -------- la.larry.fromlist : Convert a flattened list to a larry.
la/deflarry.py:4385
↓ 7 callers
Method
__align
Align larrys for binary operations.
la/deflarry.py:928
↓ 7 callers
Method
_enter
Print ':', and increase the indentation.
doc/sphinxext/compiler_unparse.py:66
↓ 7 callers
Method
_leave
Decrease the indentation level.
doc/sphinxext/compiler_unparse.py:71
↓ 7 callers
Method
_str_indent
(self, doc, indent=4)
doc/sphinxext/docscrape_sphinx.py:17
↓ 7 callers
Function
geometric_mean
Return the geometric mean of matrix x along axis, ignore NaNs. Raise an exception if any element of x is zero or less.
la/farray/misc.py:9
↓ 7 callers
Method
insertaxis
Insert a new axis at the specified position. Parameters ---------- axis : int The position to in
la/deflarry.py:4224
↓ 7 callers
Method
labelindex
Return index of given label element along specified axis. Parameters ---------- name : str, datetime.date, i
la/deflarry.py:2413
↓ 7 callers
Function
listmap_fill
Indices that map one list onto another and indices of unmappable elements. Similar to listmap() but additionaly returns a se
la/flabel.py:91
↓ 6 callers
Function
__Pyx_AddTraceback
la/src/cflabel.c:2280
↓ 6 callers
Method
__compare
(self, other, op)
la/deflarry.py:1572
↓ 6 callers
Function
_openfile
Open an archive if input is a path. Parameters ---------- file : str or h5py.File Filename or h5py.File instance of the
la/io.py:648
↓ 6 callers
Method
check_function
check a method of larry - comparison helper function
la/tests/deflarry_nose_test.py:307
↓ 6 callers
Method
eof
(self)
doc/sphinxext/docscrape.py:52
↓ 6 callers
Method
getlabel
Return a copy of the label or a reference to it. Parameters ---------- axis : int The `axis` ide
la/deflarry.py:2098
↓ 6 callers
Function
listmap
Indices that map one list onto another list. Parameters ---------- list1 : list The list to map
la/flabel.py:14
↓ 6 callers
Function
movingsum_forward
Movingsum in the forward direction skipping skip dates.
la/farray/move.py:377
↓ 6 callers
Method
sortaxis
Sort data (and label) according to label along specified axis. Parameters ---------- axis : {int, None}, opt
la/deflarry.py:3440
↓ 6 callers
Method
sqrt
Element by element square root. Returns ------- out : larry Returns a copy with square root of x
la/deflarry.py:191
↓ 5 callers
Function
__Pyx_ArgTypeTest
la/src/cflabel.c:1670
↓ 5 callers
Method
__binary_op
(self, t, symbol)
doc/sphinxext/compiler_unparse.py:503
↓ 5 callers
Function
_is_archived_larry
True if obj is an archived larry, False otherwise.
la/io.py:676
↓ 5 callers
Method
_str_section
(self, name)
doc/sphinxext/docscrape.py:336
↓ 5 callers
Function
arr
()
la/tests/empty_larry_test.py:12
↓ 5 callers
Method
flipaxis
Reverse the order of the elements along the specified axis. Parameters ---------- axis : {int, None}, option
la/deflarry.py:3527
↓ 5 callers
Function
isaligned
Return True if labels of two given larrys are aligned along specified axis. Parameters ---------- lar1 : larry Input. la
la/flarry.py:523
↓ 5 callers
Method
iteritems
An iterator over (key, value) items.
la/io.py:149
↓ 5 callers
Method
log
Element by element base e logarithm. Returns ------- out : larry Returns a copy with log of x va
la/deflarry.py:140
↓ 5 callers
Method
movingsum_forward
Movingsum in the forward direction skipping skip dates
la/deflarry.py:2882
↓ 5 callers
Method
quantile
Assign elements along specified axis into q bins, where smallest elements are in bin 1, next smallest in bin 2, ..., largest elements
la/deflarry.py:3029
↓ 5 callers
Method
read
(self)
doc/sphinxext/docscrape.py:37
↓ 5 callers
Method
run
(self)
doc/sphinxext/numpydoc.py:146
↓ 5 callers
Method
squeeze
Remove all length-1 dimensions and corresponding labels. Note that a view (reference) is returned, not a copy.
la/deflarry.py:3332
↓ 5 callers
Method
var
Variance of values along axis, ignoring NaNs. `float64` intermediate and return values are used for integer inputs.
la/deflarry.py:1221
↓ 5 callers
Method
zscore
Z-score along the specified axis. Parameters ---------- axis : {int, None}, optional The axis al
la/deflarry.py:2960
↓ 4 callers
Function
__Pyx_ExceptionReset
la/src/cflabel.c:1764
↓ 4 callers
Function
__Pyx_RaiseArgtupleInvalid
la/src/cflabel.c:1552
↓ 4 callers
Method
_is_at_section
(self)
doc/sphinxext/docscrape.py:121
↓ 4 callers
Function
cross_validation
K-fold cross validation iterator of training and testing indices. The division of the possible indices into k folds is random.
la/util/resample.py:6
↓ 4 callers
Method
cut_missing
Cut rows and columns that contain too many NaNs. Parameters ---------- fraction : scalar Usually
la/deflarry.py:3756
↓ 4 callers
Method
filename
(self, format)
doc/sphinxext/plot_directive.py:213
↓ 4 callers
Method
getx
Return a copy of the x data or a reference to it. Parameters ---------- copy : {True, False}, optional
la/deflarry.py:2049
↓ 4 callers
Function
group_mean
Mean with groups along an axis. Parameters ---------- x : ndarray Input data. groups : list List of group me
la/farray/group.py:60
↓ 4 callers
Function
group_median
Median with groups along an axis. Parameters ---------- x : ndarray Input data. groups : list List of group
la/farray/group.py:100
↓ 4 callers
Function
indent
Indents a table by column. - rows: A sequence of sequences of items, one sequence per row. - hasHeader: True if the first row consists o
la/external/prettytable.py:7
↓ 4 callers
Method
ismissing
A bool larry with element-wise marking of missing values. Returns ------- y : larry Returns
la/deflarry.py:3695
↓ 4 callers
Function
lastrank
The ranking of the last element along the axis, ignoring NaNs. The ranking is normalized to be between -1 and 1 instead of the more
la/farray/normalize.py:12
↓ 4 callers
Function
lrange
Return a new larry of sequential integers, shaped according to input. Parameters ---------- shape : {int, tuple}, optional I
la/flarry.py:1769
↓ 4 callers
Method
max
Maximum values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional Axis to
la/deflarry.py:1278
↓ 4 callers
Method
maxlabel
Maximum label value along the specified axis. Parameters ---------- axis : {int, None}, optional
la/deflarry.py:2353
↓ 4 callers
Method
median
Median of values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional Axis
la/deflarry.py:1126
next →
1–100 of 1,228, ranked by callers