zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
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
U
¬ý°d» ã@sNdZddlmZddlmZmZddlmZddlm    Z    Gdd„dee
ƒZ dS)    zj
frozen (immutable) data structures to support MultiIndexing
 
These are used for:
 
- .names (FrozenList)
 
é)Ú annotations)ÚAnyÚNoReturn)Ú PandasObject©Ú pprint_thingcsàeZdZdZddœ‡fdd„ Zddœdd„ZeZZ‡fdd„Zd    d
„Z    d d d œ‡fdd„ Z
e
Z ‡fdd„Z e Z dd„Zddœdd„Zddœdd„Zddœdd„Zddœdd„ZeZZeZZeZZZeZZZ‡ZS)Ú
FrozenListz’
    Container that doesn't allow setting item *but*
    because it's technically hashable, will be used
    for lookups, appropriately, etc.
    )Úreturncs&t|tƒrt|ƒ}t|ƒtƒ |¡ƒS)aF
        Returns a FrozenList with other concatenated to the end of self.
 
        Parameters
        ----------
        other : array-like
            The array-like whose elements we are concatenating.
 
        Returns
        -------
        FrozenList
            The collection difference between self and other.
        )Ú
isinstanceÚtupleÚlistÚtypeÚsuperÚ__add__©ÚselfÚother©Ú    __class__©úQd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/core/indexes/frozen.pyÚunions
zFrozenList.unioncs&tˆƒ‰‡fdd„|Dƒ}t|ƒ|ƒS)aF
        Returns a FrozenList with elements from other removed from self.
 
        Parameters
        ----------
        other : array-like
            The array-like whose elements we are removing self.
 
        Returns
        -------
        FrozenList
            The collection difference between self and other.
        csg|]}|ˆkr|‘qSrr)Ú.0Úx©rrrÚ
<listcomp>@sz)FrozenList.difference.<locals>.<listcomp>)Úsetr )rrÚtemprrrÚ
difference1szFrozenList.differencecs*t|tƒrt|ƒtƒ |¡ƒStƒ |¡S©N)r
Úslicer rÚ __getitem__)rÚnrrrr!Is
zFrozenList.__getitem__cCs&t|tƒrt|ƒ}t|ƒ|t|ƒƒSr)r
r r r rrrrÚ__radd__Ns
zFrozenList.__radd__rÚbool)rr    cs"t|ttfƒrt|ƒ}tƒ |¡Sr)r
r rr rÚ__eq__rrrrr%SszFrozenList.__eq__cst|ƒtƒ |¡ƒSr)r rÚ__mul__rrrrr&ZszFrozenList.__mul__cCst|ƒt|ƒffSr)r r ©rrrrÚ
__reduce___szFrozenList.__reduce__ÚintcCs tt|ƒƒSr)Úhashr r'rrrÚ__hash__cszFrozenList.__hash__rcOstdt|ƒj›dƒ‚dS)zL
        This method will not function because object is immutable.
        ú'z&' does not support mutable operations.N)Ú    TypeErrorr Ú__name__)rÚargsÚkwargsrrrÚ    _disabledfszFrozenList._disabledÚstrcCst|dddS)NT)ú    ú Ú
)Z quote_stringsZ escape_charsrr'rrrÚ__str__lszFrozenList.__str__cCst|ƒj›dt|ƒ›dS)Nú(ú))r r.r2r'rrrÚ__repr__oszFrozenList.__repr__)r.Ú
__module__Ú __qualname__Ú__doc__rrrÚ__iadd__r!r#r%Ú__req__r&Ú__imul__r(r+r1r6r9Ú __setitem__Z __setslice__Ú __delitem__Z __delslice__ÚpopÚappendÚextendÚremoveÚsortÚinsertÚ __classcell__rrrrrs&       rN) r<Ú
__future__rÚtypingrrZpandas.core.baserZpandas.io.formats.printingrr rrrrrÚ<module>s