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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.