Python Forum
How to fix and of quote / end of statement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fix and of quote / end of statement
#5
(Mar-30-2018, 01:45 PM)codyGirl Wrote: almost there. Switching form java. Used to semiclons. What is the right fix... ?

sample_df.to_csv("Desktop/"+str(title_csv)+".csv",
encoding="utf-8");
I am not using string concatenatin. Almost
The expression "Desktop/"+str(title_csv)+".csv" with using a string formatting will look like this: "Desktop/{}.csv".format(str(title)).
The {} is a placeholder for str(title)

In Python, there is no need for a semicolon.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: How to fix and of quote / end of statement - by wavic - Mar-30-2018, 03:11 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020