Ajout type contrat
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
"""
|
||||
Public API classes that store intermediate results useful for type-hinting.
|
||||
"""
|
||||
|
||||
from pandas._libs import NaTType
|
||||
from pandas._libs.lib import NoDefault
|
||||
from pandas._libs.missing import NAType
|
||||
|
||||
from pandas.core.col import Expression
|
||||
from pandas.core.groupby import (
|
||||
DataFrameGroupBy,
|
||||
SeriesGroupBy,
|
||||
)
|
||||
from pandas.core.indexes.frozen import FrozenList
|
||||
from pandas.core.resample import (
|
||||
DatetimeIndexResamplerGroupby,
|
||||
PeriodIndexResamplerGroupby,
|
||||
Resampler,
|
||||
TimedeltaIndexResamplerGroupby,
|
||||
TimeGrouper,
|
||||
)
|
||||
from pandas.core.window import (
|
||||
Expanding,
|
||||
ExpandingGroupby,
|
||||
ExponentialMovingWindow,
|
||||
ExponentialMovingWindowGroupby,
|
||||
Rolling,
|
||||
RollingGroupby,
|
||||
Window,
|
||||
)
|
||||
|
||||
# TODO: Can't import Styler without importing jinja2
|
||||
# from pandas.io.formats.style import Styler
|
||||
from pandas.io.json._json import JsonReader
|
||||
from pandas.io.sas.sasreader import SASReader
|
||||
from pandas.io.stata import StataReader
|
||||
|
||||
__all__ = [
|
||||
"DataFrameGroupBy",
|
||||
"DatetimeIndexResamplerGroupby",
|
||||
"Expanding",
|
||||
"ExpandingGroupby",
|
||||
"ExponentialMovingWindow",
|
||||
"ExponentialMovingWindowGroupby",
|
||||
"Expression",
|
||||
"FrozenList",
|
||||
"JsonReader",
|
||||
"NAType",
|
||||
"NaTType",
|
||||
"NoDefault",
|
||||
"PeriodIndexResamplerGroupby",
|
||||
"Resampler",
|
||||
"Rolling",
|
||||
"RollingGroupby",
|
||||
"SASReader",
|
||||
"SeriesGroupBy",
|
||||
"StataReader",
|
||||
"TimeGrouper",
|
||||
"TimedeltaIndexResamplerGroupby",
|
||||
"Window",
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
145
venv/lib/python3.12/site-packages/pandas/api/typing/aliases.py
Normal file
145
venv/lib/python3.12/site-packages/pandas/api/typing/aliases.py
Normal file
@@ -0,0 +1,145 @@
|
||||
from pandas._typing import (
|
||||
AggFuncType,
|
||||
AlignJoin,
|
||||
AnyAll,
|
||||
AnyArrayLike,
|
||||
ArrayLike,
|
||||
AstypeArg,
|
||||
Axes,
|
||||
Axis,
|
||||
ColspaceArgType,
|
||||
CompressionOptions,
|
||||
CorrelationMethod,
|
||||
CSVEngine,
|
||||
DropKeep,
|
||||
Dtype,
|
||||
DtypeArg,
|
||||
DtypeBackend,
|
||||
DtypeObj,
|
||||
ExcelWriterIfSheetExists,
|
||||
ExcelWriterMergeCells,
|
||||
FilePath,
|
||||
FillnaOptions,
|
||||
FloatFormatType,
|
||||
FormattersType,
|
||||
FromDictOrient,
|
||||
HTMLFlavors,
|
||||
IgnoreRaise,
|
||||
IndexLabel,
|
||||
InterpolateOptions,
|
||||
IntervalClosedType,
|
||||
IntervalLeftRight,
|
||||
JoinHow,
|
||||
JoinValidate,
|
||||
JSONEngine,
|
||||
JSONSerializable,
|
||||
ListLike,
|
||||
MergeHow,
|
||||
MergeValidate,
|
||||
NaPosition,
|
||||
NsmallestNlargestKeep,
|
||||
OpenFileErrors,
|
||||
Ordered,
|
||||
ParquetCompressionOptions,
|
||||
QuantileInterpolation,
|
||||
ReadBuffer,
|
||||
ReadCsvBuffer,
|
||||
ReadPickleBuffer,
|
||||
ReindexMethod,
|
||||
Scalar,
|
||||
ScalarIndexer,
|
||||
SequenceIndexer,
|
||||
SequenceNotStr,
|
||||
SliceType,
|
||||
SortKind,
|
||||
StorageOptions,
|
||||
Suffixes,
|
||||
TakeIndexer,
|
||||
TimeAmbiguous,
|
||||
TimedeltaConvertibleTypes,
|
||||
TimeGrouperOrigin,
|
||||
TimeNonexistent,
|
||||
TimestampConvertibleTypes,
|
||||
TimeUnit,
|
||||
ToStataByteorder,
|
||||
ToTimestampHow,
|
||||
UpdateJoin,
|
||||
UsecolsArgType,
|
||||
WindowingRankType,
|
||||
WriteBuffer,
|
||||
WriteExcelBuffer,
|
||||
XMLParsers,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AggFuncType",
|
||||
"AlignJoin",
|
||||
"AnyAll",
|
||||
"AnyArrayLike",
|
||||
"ArrayLike",
|
||||
"AstypeArg",
|
||||
"Axes",
|
||||
"Axis",
|
||||
"CSVEngine",
|
||||
"ColspaceArgType",
|
||||
"CompressionOptions",
|
||||
"CorrelationMethod",
|
||||
"DropKeep",
|
||||
"Dtype",
|
||||
"DtypeArg",
|
||||
"DtypeBackend",
|
||||
"DtypeObj",
|
||||
"ExcelWriterIfSheetExists",
|
||||
"ExcelWriterMergeCells",
|
||||
"FilePath",
|
||||
"FillnaOptions",
|
||||
"FloatFormatType",
|
||||
"FormattersType",
|
||||
"FromDictOrient",
|
||||
"HTMLFlavors",
|
||||
"IgnoreRaise",
|
||||
"IndexLabel",
|
||||
"InterpolateOptions",
|
||||
"IntervalClosedType",
|
||||
"IntervalLeftRight",
|
||||
"JSONEngine",
|
||||
"JSONSerializable",
|
||||
"JoinHow",
|
||||
"JoinValidate",
|
||||
"ListLike",
|
||||
"MergeHow",
|
||||
"MergeValidate",
|
||||
"NaPosition",
|
||||
"NsmallestNlargestKeep",
|
||||
"OpenFileErrors",
|
||||
"Ordered",
|
||||
"ParquetCompressionOptions",
|
||||
"QuantileInterpolation",
|
||||
"ReadBuffer",
|
||||
"ReadCsvBuffer",
|
||||
"ReadPickleBuffer",
|
||||
"ReindexMethod",
|
||||
"Scalar",
|
||||
"ScalarIndexer",
|
||||
"SequenceIndexer",
|
||||
"SequenceNotStr",
|
||||
"SliceType",
|
||||
"SortKind",
|
||||
"StorageOptions",
|
||||
"Suffixes",
|
||||
"TakeIndexer",
|
||||
"TimeAmbiguous",
|
||||
"TimeGrouperOrigin",
|
||||
"TimeNonexistent",
|
||||
"TimeUnit",
|
||||
"TimedeltaConvertibleTypes",
|
||||
"TimestampConvertibleTypes",
|
||||
"ToStataByteorder",
|
||||
"ToTimestampHow",
|
||||
"UpdateJoin",
|
||||
"UsecolsArgType",
|
||||
"WindowingRankType",
|
||||
"WriteBuffer",
|
||||
"WriteExcelBuffer",
|
||||
"XMLParsers",
|
||||
]
|
||||
Reference in New Issue
Block a user