Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Two text files, want to add a column value
Post: RE: Two text files, want to add a column value

@deanhystad, thank you so much for the replies and helping me to do this. Your solution worked. It is as easy as doing this : import pandas as pd df1 = pd.read_csv('file1.txt', names=("Date", "Value...
zxcv101 General Coding Help 8 2,269 Jun-20-2022, 10:11 AM
    Thread: Two text files, want to add a column value
Post: RE: Two text files, want to add a column value

Thanks, this looks more like what I need. Question - how do I remove the hardcoded values in this bit : f1 = io.StringIO(""" 20220617 14:30:00, 1.1 20220617 14:40:00, 1.3 20220617 14:50:00, 1.7 2022...
zxcv101 General Coding Help 8 2,269 Jun-19-2022, 09:05 PM
    Thread: Two text files, want to add a column value
Post: RE: Two text files, want to add a column value

Thanks for the reply, but this won't do it. I have two files and not a string made up of two different parts. Your solution would be great if I had a string of text and wanted to split this up.
zxcv101 General Coding Help 8 2,269 Jun-19-2022, 05:37 PM
    Thread: Two text files, want to add a column value
Post: Two text files, want to add a column value

Hi guys, a basic question. I have two text files which contain data like the following. There will always be only two columns, the first being date/time and the second being a number. Both files will ...
zxcv101 General Coding Help 8 2,269 Jun-19-2022, 03:21 PM
    Thread: Pandas - error when running Pycharm, but works on cmd line
Post: Pandas - error when running Pycharm, but works on ...

I'm having problems running scripts that reference pandas when I use Pycharm, but when I run the python scripts on the command line, then it all works fine. For example, I have a basic test program ...
zxcv101 General Coding Help 1 1,503 Jun-18-2022, 12:32 PM
    Thread: Simple Python API, need packaging/removing hardcoding
Post: RE: Simple Python API, need packaging/removing har...

Thanks for the reply. I will try this. I'm getting a lot of errors, and am trying to get them resolved one at a time.
zxcv101 General Coding Help 2 1,289 Jun-13-2022, 03:09 PM
    Thread: Simple Python API, need packaging/removing hardcoding
Post: Simple Python API, need packaging/removing hardcod...

Hi guys, very much a newbie question, so pls go easy. I have assembled the following program by searching the net - this basically logs onto a broker platform, via an API, and retrieves historical tr...
zxcv101 General Coding Help 2 1,289 Jun-12-2022, 07:36 PM
    Thread: Populating an array dynamically
Post: Populating an array dynamically

Hi guys - am new to Python, so if my questions seem basic, pls bear with me. I have a script which returns rows of data in this format : 20220517 09:10:00 147 20220517 09:20:00 147 20220517 09:30...
zxcv101 General Coding Help 1 1,275 May-17-2022, 10:51 AM

User Panel Messages

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