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

ValueError: DataFrame constructor not properly called! with pandas

Asked by Antony Bence Nov 30, -0001 1.7K views 1 answer
Share

About this question

def multiple_dfs(xyz_file, sheet, *args):
row=2 writer = pd.ExcelWriter(xyz_file, engine='openpyxl') df = pd.DataFrame({'user': ['A', 'B', 'C'], 'income': [50000, 60000, 53000]})df2 = pd.DataFrame({'amount': [200, 600, 2000],
'income': [50000, 60000, 53000]})df2.to_excel(author, sheet, startrow=row, index=False)df3.to_excel(author, sheet, startrow=0, startcol=0, header=None, index=False)

 Running this command throwing an error ValueError: DataFrame constructor not properly called! and I am unable to figure it out, can someone help me over this?

Your answer

1 Answer

Antony Bence Latest answer

Answered on Jun 23, 2021

Was this helpful?

More Java discussions

Learn & Explore

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

Latest Java Blogs

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