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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Prakash1050
Helper III
Helper III

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 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Prakash1050 ,

Please refer below ways:

vbinbinyumsft_0-1716964157943.png

 

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...

 

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.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Prakash1050 ,

Please refer below ways:

vbinbinyumsft_0-1716964157943.png

 

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...

 

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.