Python Forum
Pandas issue on Raspberry Pi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas issue on Raspberry Pi
#1
I have a simple pandas import with a simple script on a raspberry pi. I can run it through the command line and through the editor. However, when I try to double click it to run it, it fails before doing anything. I see the screen flash and then it goes away without running the code.

import time
import pandas as pd
df = pd.read_csv('bar.csv')
print(df.tail())
time.sleep(60)
I ran this little test script because my larger script was having a similar issue so I tried to troubleshoot all of the possible issues. If I comment out all the pandas stuff it runs just fine when you double click it. What has me questioning my sanity is the fact that it does run just fine in the command line but not when I try to double click the file. The csv is in the same file location as the python file.
Reply


Messages In This Thread
Pandas issue on Raspberry Pi - by hesco40 - Jan-23-2020, 03:34 AM
RE: Pandas issue on Raspberry Pi - by buran - Jan-23-2020, 05:32 AM
RE: Pandas issue on Raspberry Pi - by hesco40 - Jan-23-2020, 09:01 PM
RE: Pandas issue on Raspberry Pi - by joe_momma - Jan-24-2020, 03:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue in getting the required data from nested json and store it in a pandas datafram PrateekG 2 3,322 May-20-2018, 11:25 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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