Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: output limited
Post: RE: output limited

Added the pd.option context - import csv import pandas as pd # df = pd.read_csv('/home/bob/Python_data_sets/phila_crime_incidents_part1_part2.csv', usecols = ['location_block', 'text_general_code']) ...
loren41 Data Science 3 2,250 Jun-03-2019, 04:59 PM
    Thread: output limited
Post: output limited

Running Python 2.7 and Pandas. Editor is Sublime Text. Wrote a program to display two columns from a large csv file. The output seems correct, but truncates after 29 lines and then returns at line 25...
loren41 Data Science 3 2,250 Jun-03-2019, 04:30 PM
    Thread: Can't import the CSV module
Post: Can't import the CSV module

Can't import the CSV module. Error says "No module named CSV" Using Sublime Text as my editor. Do I need to include a path name somewhere?
loren41 General Coding Help 1 4,261 May-31-2019, 10:02 PM
    Thread: pandas install error
Post: RE: pandas install error

Installing those two dependencies solved my problem. Thanks for your help and on to the next.
loren41 Data Science 5 4,893 May-20-2019, 06:42 PM
    Thread: pandas install error
Post: RE: pandas install error

Both sync to python 3.6. Is there a way to verify that I am using python3 to execute script? My package mgr describes Sublime Text as python 3. I can do an import csv and that is verified. I saw i...
loren41 Data Science 5 4,893 May-20-2019, 05:37 PM
    Thread: pandas install error
Post: RE: pandas install error

I installed using pip3 install pandas from Konsole terminal
loren41 Data Science 5 4,893 May-20-2019, 03:48 PM
    Thread: pandas install error
Post: pandas install error

Python package installed but gives dependency error on import of pandas. Traceback (most recent call last): File "/home/bob/Python_work_area/csv_crime_test_2.py", line 9, in <module> impo...
loren41 Data Science 5 4,893 May-19-2019, 06:54 PM
    Thread: import pandas as pd not working in pclinuxos
Post: RE: import pandas as pd not working in pclinuxos

The answer is yes. When I tried to install IDLE and subsequently Sublime Text, the pclinuxos forum advised that I cannot remove it's version of Python2. After restoring Python2, I was able to run Py...
loren41 Data Science 3 2,317 May-19-2019, 12:55 AM
    Thread: import pandas as pd not working in pclinuxos
Post: import pandas as pd not working in pclinuxos

Running python 3.6.5 in pclinuxos. Installed python3-pandas using Synaptic package manager. Tried to import pandas as pd but received "No module named pandas" message. Is this an address problem?
loren41 Data Science 3 2,317 May-18-2019, 10:56 PM
    Thread: Python 3.6.5 syntax error in IDLE
Post: RE: Python 3.6.5 syntax error in IDLE

Thank you Snippsat.
loren41 General Coding Help 7 5,073 May-11-2019, 02:52 PM
    Thread: Python 3.6.5 syntax error in IDLE
Post: RE: Python 3.6.5 syntax error in IDLE

Python 3.6.5 (default, Jan 16 2019, 21:12:16) [GCC 7.3.0] on linux Type "copyright", "credits" or "license()" for more information. >>> import csv # import the csv module # >>> pr...
loren41 General Coding Help 7 5,073 May-10-2019, 07:14 PM
    Thread: Python 3.6.5 syntax error in IDLE
Post: RE: Python 3.6.5 syntax error in IDLE

Tried a code example in IDLE first. Then tried a second example using Sublime Text. Same error, but more feedback. Python 3.6.5 (default, Jan 16 2019, 21:12:16) [GCC 7.3.0] on linux Type "copyright...
loren41 General Coding Help 7 5,073 May-10-2019, 06:24 PM
    Thread: Python 3.6.5 syntax error in IDLE
Post: Python 3.6.5 syntax error in IDLE

Trying to use IDLE in Python 3.6.5 but receiving sytax error at the top line. Python 3.6.5 (default, Jan 16 2019, 21:12:16) [GCC 7.3.0] on linux Type "copyright", "credits" or "license()" for more i...
loren41 General Coding Help 7 5,073 May-08-2019, 08:42 PM
    Thread: Install Python on Raspberry Pi 3 B+
Post: RE: Install Python on Raspberry Pi 3 B+

Thank you. I have installed Sublime Text from a package on my desktop Linux pc and will share files with my Raspberry Pi.
loren41 General Coding Help 4 4,434 May-03-2019, 03:13 PM
    Thread: Install Python on Raspberry Pi 3 B+
Post: RE: Install Python on Raspberry Pi 3 B+

Thanks micseydel for your reply. Raspbian and Python 3 sound like the way to go. Neither Pycharm nor Sublime Text are in the Pi package. It contains IDLE, Eric, Thonny, Geany. I spent a little tim...
loren41 General Coding Help 4 4,434 May-01-2019, 12:25 AM
    Thread: Install Python on Raspberry Pi 3 B+
Post: Install Python on Raspberry Pi 3 B+

Noob wanting to learn Python programming. My interest is focused on text-based document retrieval and data mining. I am 78 years old and have a Masters degree in Computer Science (translates to outda...
loren41 General Coding Help 4 4,434 Apr-29-2019, 07:31 PM

User Panel Messages

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