Detail: Frame: Accessor Hashlib
Overview: Frame: Accessor Hashlib
- Frame.via_hashlib(include_name, include_class, encoding).to_bytes()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.to_bytes()[source]
Return the byte signature for this container, suitable for passing to a cryptographic hash function.
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).to_bytes() b'FrameIndex\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00Indexa\x00\x00\x00b\x00\x00\x00c\x00\x00\x00\n\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00q\x00\x00\x00r\x00\x00\x00s\x00\x00\x00 \x00\x00\x00X\x00\x00\x00Y\x00\x00\x00Z\x00\x00\x00\x00\x00\x00\x001\x00\x00\x002\x00\x00\x003\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00w\x00\x00\x00X\x00\x00\x00 \x00\x00\x00\xb1y\xfd\xff\xff\xff\xff\xff\x0bz\xfd\xff\xff\xff\xff\xff\x1d{\xfd\xff\xff\xff\xff\xffez\xfd\xff\xff\xff\xff\xff'
- Frame.via_hashlib(include_name, include_class, encoding).md5()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.md5()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).md5().hexdigest() cca634cbca34e9aec8db311431206ad5
- Frame.via_hashlib(include_name, include_class, encoding).sha256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha256()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).sha256().hexdigest() b7bc6cd33fcf55d60f6d798096d04c93606c55f13092b07327ec32c1a2ef7f2a
- Frame.via_hashlib(include_name, include_class, encoding).sha512()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha512()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).sha512().hexdigest() d343495b7bcbcf8d356dd13e86e31f0a63d8a1a45c9412412d38d9155e468333d83980e5c596a4fc786bd4fe13404fc14b60e22906d734ac41d98c2f31a1e133
- Frame.via_hashlib(include_name, include_class, encoding).sha3_256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha3_256()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).sha3_256().hexdigest() 9ee0e0b9cea2ca7deaf5676fc48dd1fa90eb6be68a12eddd1243a966d4c4f6b0
- Frame.via_hashlib(include_name, include_class, encoding).sha3_512()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha3_512()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).sha3_512().hexdigest() 4d60b6f8ade312b33fb1496fbc256307f350199964f1d814a12d5b045a013d2a4c00eee5cca0048415ff30d4297041ac1ea995fc077208a5395af7c97cf7fc08
- Frame.via_hashlib(include_name, include_class, encoding).shake_128()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.shake_128()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).shake_128().hexdigest(8) 6608a4ac806ab763
- Frame.via_hashlib(include_name, include_class, encoding).shake_256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.shake_256()[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).shake_256().hexdigest(8) b0396e56b04a9cef
- Frame.via_hashlib(include_name, include_class, encoding).blake2b(*, digest_size, key, salt, person, fanout, depth, leaf_size, node_offset, node_depth, inner_size, last_node)
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.blake2b(*, digest_size=64, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False)[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).blake2b().hexdigest() d10691176ecadbacabd4e6f9ed00329488af05b81f9c9e800cf08ccc447f341d5c96c9d731383dbc742c30d21ae3ab0790d8b73c7009c3ccfe3d5dccd353adfe
- Frame.via_hashlib(include_name, include_class, encoding).blake2s(*, digest_size, key, salt, person, fanout, depth, leaf_size, node_offset, node_depth, inner_size, last_node)
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.blake2s(*, digest_size=32, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False)[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <Index> 0 10 qrs 1517-01-01 1 2 XYZ 1517-04-01 2 8 123 1517-12-31 3 3 wX 1517-06-30 <int64> <int64> <<U4> <datetime64[D]> >>> f.via_hashlib(include_name=False).blake2s().hexdigest() 088df67e772a9f1d161dd66a9c3e30e260b89b4b664dd45a41ee0ca663a76e32
Frame: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Assignment | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Fill Value | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic | Accessor Reduce