Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Prakash1050
Helper II
Helper II

UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names

Hi Community, 

 

         I'm using notebook in fabric for predict the value by using linear regression from python.

This below code is I'm using,

Prakash1050_0-1715751612042.png

 

But the output is comming with this error. why?

 

Prakash1050_1-1715751690123.png

 

Please hel me. 

Thanks in advance.

 

 

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Prakash1050 ,

Here are some links to similar questions you can refer to: 

python 3.x - SKLearn warning "valid feature names" in version 1.0 - Stack Overflow,

scikit learn - UserWarning: X has feature names, but StandardScaler was fitted without feature names...

 

Hope it is helpful for you.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors