Skip to content

Tag: python

julia.install() fails on python import error

I am trying to run a Julia script from python. I have Julia 1.6.4 installed (also tried 1.7.3) and installed pip install julia from Pycharm’s terminal in the virtual environment. When importing julia and then running julia.install() I get the following error message: I use Pycharm with a virtual environ…

How to model an empty dictionary in pydantic

I’m working with a request of a remote webhook where the data I want to validate is either there, or an empty dictionary. I would like it to run through the model validator if it’s there but also not choke if it’s an empty dictionary. input 1: input 2: input 3: How would I model something li…

Error with Pipeline for fourier featurizer

When I run above code. I get following error: TypeError: Last step of Pipeline should be of type BaseARIMA. ‘FourierFeaturizer(k=1, m=14)’ I don’t wish to use BaseARIMA. Just wish to use FourierFeaturizer is it possible? Answer Yes, it’s possible. Each FourierFeaturizer has a fit_trans…