Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kwgoodman/la
/ functions
Functions
1,228 in github.com/kwgoodman/la
⨍
Functions
1,228
◇
Types & classes
71
↓ 4 callers
Method
min
Minimum values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional Axis to
la/deflarry.py:1315
↓ 4 callers
Method
minlabel
Minimum label value along the specified axis. Parameters ---------- axis : {int, None}, optional
la/deflarry.py:2383
↓ 4 callers
Function
move_func_loop
Generic moving window function implemented with a python loop.
la/farray/move.py:219
↓ 4 callers
Function
move_func_strides
Generic moving window function implemented with strides.
la/farray/move.py:236
↓ 4 callers
Function
movingrank
Moving rank (normalized to -1 and 1) of a given window along axis. Normalized for missing (NaN) data. A data point with NaN data is returned
la/farray/move.py:384
↓ 4 callers
Method
movingrank
Moving rank (normalized to -1 and 1) of a given window along axis. Normalized for missing (NaN) data. A data point with NaN data is r
la/deflarry.py:2889
↓ 4 callers
Method
ndim
Number of dimensions.
la/io.py:335
↓ 4 callers
Function
ones
Return a new larry of given shape and type, filled with ones. Parameters ---------- shape : {int, tuple}, optional If `s
la/flarry.py:1936
↓ 4 callers
Method
pull
Pull out the values for a given label name along a specified axis. A view of the data (but a copy of the label) is returned
la/deflarry.py:2144
↓ 4 callers
Method
read_to_next_empty_line
(self)
doc/sphinxext/docscrape.py:65
↓ 4 callers
Function
setup
(app, get_doc_object_=get_doc_object)
doc/sphinxext/numpydoc.py:88
↓ 4 callers
Function
subtract
Difference of two larrys using given join and fill methods. Parameters ---------- lar1 : larry The larry on the left-ha
la/flarry.py:911
↓ 4 callers
Method
unflatten
Return an unflattened copy of larry. The larry to be unflattened must be in flattened form: 1d and label elements mu
la/deflarry.py:4161
↓ 4 callers
Function
unique
Find the unique elements of a larry. Returns the sorted unique elements of a larry as a Numpy array. There are two optional outputs
la/flarry.py:1273
↓ 4 callers
Function
unique_group
Find unique groups in list not including None.
la/farray/group.py:138
↓ 4 callers
Function
zeros
Return a new larry of given shape and type, filled with zeros. Parameters ---------- shape : {int, tuple}, optional If
la/flarry.py:2013
↓ 3 callers
Function
__Pyx_GetItemInt_Generic
la/src/cflabel.c:380
↓ 3 callers
Function
__Pyx_GetName
la/src/cflabel.c:1537
↓ 3 callers
Function
__Pyx_PyDict_GetItem
la/src/cflabel.c:456
↓ 3 callers
Function
__Pyx_PyInt_AsSignedLong
la/src/cflabel.c:2108
↓ 3 callers
Function
__Pyx_PyInt_AsUnsignedLong
la/src/cflabel.c:1968
↓ 3 callers
Method
__init__
(self, obj, doc=None, config={})
doc/sphinxext/docscrape_sphinx.py:205
↓ 3 callers
Function
_get_bases
(node, recurse=False)
doc/sphinxext/phantom_import.py:63
↓ 3 callers
Method
_group_align
Return a row aligned group list (e.g. sector list) of values. group must have exactly one column. The row labels of the object must
la/deflarry.py:3104
↓ 3 callers
Method
_str_header
(self, name, symbol='-')
doc/sphinxext/docscrape.py:299
↓ 3 callers
Method
_str_header
(self, name, symbol='`')
doc/sphinxext/docscrape_sphinx.py:11
↓ 3 callers
Method
_str_indent
(self, doc, indent=4)
doc/sphinxext/docscrape.py:302
↓ 3 callers
Method
_str_param_list
(self, name)
doc/sphinxext/docscrape.py:326
↓ 3 callers
Method
abs
Absolute value of x. Returns ------- out : larry Returns a copy with the absolute values of the
la/deflarry.py:472
↓ 3 callers
Method
add
Add a new comment line.
doc/sphinxext/comment_eater.py:22
↓ 3 callers
Function
assert_larry_equal
Assert equality of two larries or two scalars. If either `actual` or `desired` has a dtype that is inexact, such as float, then almo
la/util/testing.py:10
↓ 3 callers
Function
bootstrap
Bootstrap iterator for training and testing indices. Parameters ---------- n : int Number of elements in total. Must be
la/util/resample.py:72
↓ 3 callers
Method
clip
Clip x values. Parameters ---------- lo : scalar All data values less than `lo` are set to `lo`.
la/deflarry.py:422
↓ 3 callers
Function
contains_doctest
(text)
doc/sphinxext/plot_directive.py:379
↓ 3 callers
Method
exp
Element by element exponential. Returns ------- out : larry Returns a copy with exp of x values.
la/deflarry.py:166
↓ 3 callers
Function
fromlists
Convert list of values and list of label tuples to larry label and x. Parameters ---------- xs : {tuple, list} A tuple o
la/util/misc.py:161
↓ 3 callers
Method
fromtuples
Convert a list of tuples to a larry. The input data, if there are N dimensions and M data points, should have this f
la/deflarry.py:4313
↓ 3 callers
Method
geometric_mean
Geometric mean of values along axis, ignoring NaNs. Parameters ---------- axis : {None, integer}, optional
la/deflarry.py:1091
↓ 3 callers
Function
group_ranking
Ranking within groups along axis. Parameters ---------- x : ndarray Data to be ranked. groups : list List of
la/farray/group.py:10
↓ 3 callers
Method
has_key
True if key is in archive, False otherwise.
la/io.py:154
↓ 3 callers
Method
lastrank
The ranking of the last element along the axis, ignoring NaNs. The ranking is normalized to be between -1 and 1 instead of t
la/deflarry.py:1473
↓ 3 callers
Method
maplabel
Apply given function to each element of label along specified axis. Parameters ---------- func : function
la/deflarry.py:2462
↓ 3 callers
Function
move_func
Generic moving window function along the specified axis. Parameters ---------- func : function A reducing function such
la/farray/move.py:169
↓ 3 callers
Method
peek
(self,n=0)
doc/sphinxext/docscrape.py:76
↓ 3 callers
Method
push
Fill missing values (NaNs) with most recent non-missing values if recent, where recent is defined by the window. The filling proceeds
la/deflarry.py:3816
↓ 3 callers
Function
randstring
Random characters string selected from lower, upper letters and digits.
la/util/misc.py:11
↓ 3 callers
Function
relpath
Return a relative path to the target from either the current dir or an optional base dir. Base can be a directory specified
doc/sphinxext/plot_directive.py:585
↓ 3 callers
Function
shuffle
Shuffle the data inplace along the specified axis. Unlike numpy's shuffle, this shuffle takes an axis argument. The ordering of the
la/farray/misc.py:161
↓ 3 callers
Method
shufflelabel
Shuffle the label inplace along the specified axis. Parameters ---------- axis : {int, None}, optional
la/deflarry.py:3650
↓ 3 callers
Function
testsuite
()
la/tests/io_test.py:98
↓ 3 callers
Method
values
Return a list of larry objects (values) in archive.
la/io.py:131
↓ 2 callers
Function
__Pyx_ExceptionSave
la/src/cflabel.c:1754
↓ 2 callers
Function
__Pyx_ImportType
la/src/cflabel.c:2199
↓ 2 callers
Function
__Pyx_RefNannyImportAPI
la/src/cflabel.c:1522
↓ 2 callers
Method
__delitem__
(self, key)
la/io.py:216
↓ 2 callers
Method
__init__
Parameters ---------- data : str String with lines separated by '\n'.
doc/sphinxext/docscrape.py:16
↓ 2 callers
Function
_load_label
Load larry labels from archive given the hpy5.Group object of the larry.
la/io.py:609
↓ 2 callers
Method
_parse
(self)
doc/sphinxext/docscrape.py:280
↓ 2 callers
Method
_read_to_next_section
(self)
doc/sphinxext/docscrape.py:146
↓ 2 callers
Method
_repack_conditional
Repack if `max_freespace` is exceeded.
la/io.py:256
↓ 2 callers
Method
_str_index
(self)
doc/sphinxext/docscrape.py:369
↓ 2 callers
Method
_str_references
(self)
doc/sphinxext/docscrape_sphinx.py:139
↓ 2 callers
Method
_str_section
(self, name)
doc/sphinxext/docscrape_sphinx.py:98
↓ 2 callers
Method
_str_see_also
(self, func_role)
doc/sphinxext/docscrape.py:344
↓ 2 callers
Method
_str_signature
(self)
doc/sphinxext/docscrape.py:308
↓ 2 callers
Function
align_raw
Align two larrys but return Numpy arrays and label instead of larrys. This function is the same as la.align() except that instead of ret
la/flarry.py:132
↓ 2 callers
Function
cov
Covariance matrix adjusted for missing (NaN) values. Note: Only works on 2d larrys. The mean of each row is assumed to be zero.
la/flarry.py:1471
↓ 2 callers
Function
demean
Subtract the mean along the specified axis. Parameters ---------- arr : ndarray Input array. axis : {int, None}, opt
la/farray/normalize.py:295
↓ 2 callers
Function
empty
Return a new larry of given shape and type, without initializing entries. Parameters ---------- shape : {int, tuple}, optional
la/flarry.py:1854
↓ 2 callers
Function
flattenlabel
Flatten label in row-major order 'C' (default) or column-major order 'F'. Code taken (but modified) from http://code.activestate.com/rec
la/flabel.py:166
↓ 2 callers
Method
fromlist
Convert a flattened list to a larry. The input data, if there are N dimensions and M data points, should have this form::
la/deflarry.py:4408
↓ 2 callers
Method
get_func
(self)
doc/sphinxext/docscrape.py:435
↓ 2 callers
Method
group_mean
Group (e.g. sector) mean along columns (zero axis). The row labels of the object must be a subset of the row labels of the gr
la/deflarry.py:3082
↓ 2 callers
Method
group_median
Group (e.g. sector) median along columns (zero axis). The row labels of the object must be a subset of the row labels of the
la/deflarry.py:3093
↓ 2 callers
Function
intersection
Sorted list containing the intersection of labels along specified axis. Parameters ---------- axis : int The axis along
la/flarry.py:612
↓ 2 callers
Method
invert
Element by element inverting of True to False and False to True. Raises ------ TypeError If larr
la/deflarry.py:613
↓ 2 callers
Function
isfloat
Returns True if input is a float; False otherwise. Parameters ---------- x : any Input can be of any type. Retur
la/util/misc.py:65
↓ 2 callers
Function
isint
Returns True if input is an integer; False otherwise. Parameters ---------- x : any Input can be of any type. Re
la/util/misc.py:19
↓ 2 callers
Method
items
Return a list of all (key, value) pairs.
la/io.py:135
↓ 2 callers
Function
iterable
return true if *obj* is iterable
la/external/matplotlib.py:103
↓ 2 callers
Function
labels2indices
Convert list of labels to indices
la/deflarry.py:4922
↓ 2 callers
Function
lar
()
la/tests/all_nan_test.py:13
↓ 2 callers
Method
make_index
Make the index mapping lines of actual code to their associated prefix comments.
doc/sphinxext/comment_eater.py:112
↓ 2 callers
Method
nan_replace
Replace NaNs. Parameters ---------- replace_with : scalar Value to replace NaNs with.
la/deflarry.py:3887
↓ 2 callers
Function
nocopy
Return True if there are only references
la/util/testing.py:269
↓ 2 callers
Function
out_of_date
Returns True if derivative is out-of-date wrt original, both of which are full file paths.
doc/sphinxext/plot_directive.py:475
↓ 2 callers
Function
panel
Convert a 3d larry of shape (n, m, k) to a 2d larry of shape (m*k, n). Parameters ---------- lar : 3d larry The input mu
la/flarry.py:1407
↓ 2 callers
Method
power
Element by element x**q. Parameters ---------- q : scalar The power to raise to.
la/deflarry.py:244
↓ 2 callers
Function
rand
Random samples from a uniform distribution in a given shape. The random samples are from a uniform distribution over ``[0, 1)``.
la/flarry.py:1506
↓ 2 callers
Method
read_to_condition
(self, condition_func)
doc/sphinxext/docscrape.py:55
↓ 2 callers
Method
repack
Repack archive to remove freespace.
la/io.py:252
↓ 2 callers
Method
reset
(self)
doc/sphinxext/docscrape.py:34
↓ 2 callers
Method
seek_next_non_empty_line
(self)
doc/sphinxext/docscrape.py:45
↓ 2 callers
Function
slicemaker
Convert a slice that may contain labels to a slice with indices.
la/deflarry.py:4896
↓ 2 callers
Method
swapaxes
Swap the two specified axes. Parameters ---------- axis1 : int First axis. This axis will become
la/deflarry.py:4057
↓ 2 callers
Method
tofile
Save 1d or 2d larry to text file (overwrites file if already exists). Parameters ---------- file : {str, fil
la/deflarry.py:4653
↓ 2 callers
Method
totuples
Convert to a flattened list of tuples. See Also -------- la.larry.fromtuples : Convert a list of tuples to a
la/deflarry.py:4288
↓ 2 callers
Function
unescape_doctest
Extract code from a piece of text, which contains either Python code or doctests.
doc/sphinxext/plot_directive.py:390
↓ 2 callers
Function
union
Union of labels along specified axis. Parameters ---------- axis : int The axis along which to take the union of the lab
la/flarry.py:571
↓ 1 callers
Method
_Name
(self, t)
doc/sphinxext/compiler_unparse.py:356
← previous
next →
101–200 of 1,228, ranked by callers