getml / getml-community

Fast, high-quality forecasts on relational and multivariate time-series data powered by new feature learning algorithms and automated ML.
https://getml.com
Other
94 stars 9 forks source link

Change in dataframe columns leads to error when printing dataframe (try catch refresh requiered) #5

Open joro-enbw opened 10 months ago

joro-enbw commented 10 months ago

When modifying a table via

table= table.drop(
        cols=[
            "A",
            "B",
            "C"
        ]
    ).to_df(name=table.name)

no error is thrown. But if we then try to subsequently access the table, the error is thrown that column "A" does not exists (table.name=TEST):

OSError: Data frame 'TEST' contains no column named 'A'!

The problem is solved by calling

table.refresh()

=> Possible solution add try catch which calls refresh?