Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

'DataFrame' object has no attribute 'sort'

Asked by Aashish Chaursiya Apr 22, 2021 1.2K views 1 answer
Share

About this question

 I face some problem here, in my python package I have to install numpy, but I still have this error 'DataFrame' object has no attribute 'sort'

Anyone can give me some ideas...


This is my code :

final.loc[-1] =['', 'P','Actual']
final.index = final.index + 1  # shifting index
final = final.sort()
final.columns=[final.columns,final.iloc[0]]
final = final.iloc[1:].reset_index(drop=True)
final.columns.names = (None, None)

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.