pandas.ewma — pandas 0.17.0 documentation | Pandas EWMA

Navigationindexmodules|next|previous|pandas0.17.0documentation»APIReference»TableOfContentsWhat’sNewInstallationContributingtopandasFrequentlyAskedQuestions(FAQ)Packageoverview10MinutestopandasTutorialsCookbookIntrotoDataStructuresEssentialBasicFunctionalityWorkingwithTextDataOptionsandSettingsIndexingandSelectingDataMultiIndex/AdvancedIndexingComputationaltoolsWorkingwithmissingdataGroupBy:split-apply-combineMerge,join,andconcatenateReshapingandPivotTablesTimeSeries/DatefunctionalityTimeDeltasCategoricalDataPlottingIOTools(Text,CSV,HDF5,...)RemoteDataAccessEnhancingPerformanceSparsedatastructuresCaveatsandGotchasrpy2/RinterfacepandasEcosystemComparisonwithR/RlibrariesComparisonwithSQLComparisonwithSASAPIReferenceInput/OutputGeneralfunctionsDatamanipulationsTop-levelmissingdataTop-levelconversionsTop-leveldealingwithdatetimelikeTop-levelevaluationStandardmovingwindowfunctionsStandardexpandingwindowfunctionsExponentially-weightedmovingwindowfunctionspandas.ewmapandas.ewmstdpandas.ewmvarpandas.ewmcorrpandas.ewmcovSeriesDataFramePanelPanel4DIndexCategoricalIndexDatetimeIndexTimedeltaIndexGroupByGeneralutilityfunctionsInternalsReleaseNotesSearchEntersearchtermsoramodule,classorfunctionname.pandas.ewma¶pandas.ewma(arg,com=None,span=None,halflife=None,min_periods=0,freq=None,adjust=True,how=None,ignore_na=False)¶Exponentially-weightedmovingaverageParameters:arg:Series,DataFramecom:float.optionalCenterofmass:,span:float,optionalSpecifydecayintermsofspan,halflife:float,optionalSpecifydecayintermsofhalflife,min_periods:int,default0Minimumnumberofobservationsinwindowrequiredtohaveavalue(otherwiseresultisNA).freq:Noneorstringalias/dateoffsetobject,default=NoneFrequencytoconformtobeforecomputingstatisticadjust:boolean,defaultTrueDividebydecayingadjustmentfactorinbeginningperiodstoaccountforimbalanceinrelativeweightings(viewingEWMAasamovingaverage)how:string,default‘mean’Methodfordown-orre-samplingignore_na:boolean,defaultFalseIgnoremissingvalueswhencalculatingweights;specifyTru


常見投資理財問答