Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 CSV file dont open with code
i have put the following code in python shell and it working fine but not opening in pycharm
import pandas as pd
import numpy as np

df = pd.read_csv('C:\Program Files\PycharmProjects\code examples\StatementImportTemplate.csv')
its showing just in output:
"C:\Program Files\python.exe" "C:/Program Files/PycharmProjects/code examples/code"

Process finished with exit code 0

csv file has two columns one has date other has numbers
Are you running this as a file ('python "code"'), right?
Your code is fine.
Try to use print(df.head()) to output head() content in your console (prompt).
ayaz786amd likes this post
thanks its working

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [split] Locate and open csv file agocomp 3 1,332 Dec-02-2017, 07:02 AM
Last Post: buran
  Open excel file using Python cioer23 8 13,769 Jul-26-2017, 10:57 AM
Last Post: Larz60+
  Access xlsm file that has been open ian 6 2,130 Jun-27-2017, 07:17 PM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)