MCPcopy Create free account
hub / github.com/apache/arrow / dictionary_types

Function dictionary_types

python/pyarrow/tests/strategies.py:221–233  ·  view source on GitHub ↗
(key_strategy=None, value_strategy=None)

Source from the content-addressed store, hash-verified

219
220
221def dictionary_types(key_strategy=None, value_strategy=None):
222 if key_strategy is None:
223 key_strategy = signed_integer_types
224 if value_strategy is None:
225 value_strategy = st.one_of(
226 bool_type,
227 integer_types,
228 st.sampled_from([pa.float32(), pa.float64()]),
229 binary_type,
230 string_type,
231 fixed_size_binary_type,
232 )
233 return st.builds(pa.dictionary, key_strategy, value_strategy)
234
235
236@st.composite

Callers 1

strategies.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected