Python Forum
Unable to create csv file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to create csv file
#2
your code is trying to create a dataframe by read from a csv file (not creating one). the file ./data/samples/iris/myFile.csv does not exist (that is what error says)
also your line #8 os.path.exists("myFile.csv") has no visible effect - you don't print or use in any other way what os.path.exists will return.
Finally you 'check' if myFile.csv in current working directory, and this may or may not be the "./data/samples/iris/"
Reply


Messages In This Thread
Unable to create csv file - by Sumaira - Feb-05-2018, 09:06 AM
RE: Unable to create csv file - by buran - Feb-05-2018, 09:19 AM
RE: Unable to create csv file - by Sumaira - Feb-06-2018, 03:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie here. Create an array from file data? Rayj00 2 1,301 Jan-13-2023, 01:35 PM
Last Post: perfringo
  Create a turtle drawing from .txt file Noob101 20 9,271 Jan-29-2021, 04:13 PM
Last Post: nilamo
  how can i create a dictionary of dictionaries from a file Astone 2 2,332 Oct-26-2020, 02:40 PM
Last Post: DeaD_EyE
  Unable to output the indices from an input file rainbow2312 1 3,016 Nov-18-2017, 05:53 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

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