Skip to content

No equals Date in Several time series and dataframe #127414

Discussion options

You must be logged in to vote

Hello dear;

It seems the primary issue is ensuring that the indices of 'series_without_irregularities' and 'series_without_irregularities_df' align correctly with 'UBT.index'. Let's break down the steps and ensure we properly align the indices and create the DataFrame correctly.
Here's a modified version of your code that ensures proper alignment of the dates:

import pandas as pd
import altair as alt
from sklearn.linear_model import LinearRegression
import numpy as np
import pmdarima as pm

# 1. Load the database
UBT = pd.read_excel("prueba fechas.xlsx", sheet_name="Top Mount")

# Dictionary to convert month names in Spanish to numbers
months = {
    'enero': '01', 'febrero': '02', 'marzo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by francis-fm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
2 participants