Time Series | How to Make the Time Series Data Stationary in Python| #3

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 18

  • @learnerea
    @learnerea  Рік тому +1

    Note - Before using the "test_stationarity" created in the video, please remove the "NaN" values first and then use this function for better result... e.g.
    df.dropna()
    test_stationarity(df, 'your variable')
    ==== you can also try df.dropna(inplace=True)
    sorry for the inconvenience

  • @PalashKantiKundu
    @PalashKantiKundu 9 місяців тому +2

    This is the best video I have found to understand how to make the data stationary. Especially, almost no video shown the mix of operations you did to the time series.

    • @learnerea
      @learnerea  8 місяців тому

      Glad it was helpful

  • @ixternal9295
    @ixternal9295 Рік тому +2

    I'm getting different numbers for log + sqrt + shift, as well as the first shift. When you applied dropna after getting the error, it seems to have removed the rolling values.

    • @learnerea
      @learnerea  Рік тому

      Thanks for bringing it into the notice.
      Rolling statistics remains there, but what happens is, first it removes the na value in the supplied variable and then whatever is left, on top of that it calculates the rolling statistics.... but the rolling statistics remains unimpacted.. and on overall level also there won't be much impact as it's just removing one month before calculating the adfuller... in case if you are shifting for more than a month, recommend you to do the adfuller test separatly.....
      good observation....

  • @iremkaya4049
    @iremkaya4049 7 місяців тому +1

    In 7:15 i wrote df.head() and my data comes only with the columns: passenger, rollMean and rollStd. In yours there are more, is sth wrong ?

    • @learnerea
      @learnerea  5 місяців тому

      U seem to have the issue that it is not showing all of the columns u might be getting ........ as well if so, run this
      pd.set_option('display.max_columns

  • @aligholinia1146
    @aligholinia1146 Рік тому

    hello, thanks for this great video, my problem is it doesn't plot the mean and standard deviation properly for my data, for example it show's mean of half of my data and also my result for logShiftDiff in test statistics indicate that data is stationary but the plot isn't correct
    by the way I write your codes for plotting and test_stationarity

    • @learnerea
      @learnerea  Рік тому

      If possible, share you script at learnerea.edu@gmail.com

  • @SamikshaGebise
    @SamikshaGebise 5 місяців тому

    test_stationarity(air_df.dropna(),'shiftdiff'), while checking stationarity with test_stationarity function am getting a value error i.e ValueError: Could not interpret value `shiftdiff` for parameter `y` can you help me to solve above problem

    • @learnerea
      @learnerea  5 місяців тому

      Why do have written shiftdiff in quotes?

  • @ravivalecha1803
    @ravivalecha1803 Рік тому

    can you please share the python code explained in all the videos

    • @learnerea
      @learnerea  Рік тому

      here you can find all of the data science ones -
      github.com/LEARNEREA/Data_Science/tree/main/Scripts
      for other you can just go on the home page of this GitHub link and can check out whatever you want from respective repository

  • @AbhishekChandraShukla
    @AbhishekChandraShukla 11 місяців тому

    thank you broda

    • @learnerea
      @learnerea  11 місяців тому

      glad it was helpful

  • @mayankkori1390
    @mayankkori1390 4 місяці тому

    Github code link ?

  • @ajaykushwaha4233
    @ajaykushwaha4233 Рік тому +1

    Hi Sir your all videos are awesome but I did not find video oh hypertuning n PCA.