Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with reading json file
Post: RE: Help with reading json file

Thank you all for helping. I understand it now. HHC
hhchenfx General Coding Help 5 4,502 Jul-07-2021, 01:58 PM
    Thread: Help with reading json file
Post: RE: Help with reading json file

The whole traceback is: Error:Traceback (most recent call last): File "<input>", line 1, in <module> File "D:\Python\Homework\venv\lib\site-packages\pandas\util\_decorators.py", line 1...
hhchenfx General Coding Help 5 4,502 Jul-07-2021, 03:31 AM
    Thread: Help with reading json file
Post: Help with reading json file

Hi, Can anyone help me to review this short code below that read json data from url? I am not sure why it give error. Thank you, HHC data = pd.read_json('http://hl7.org/fhir/2018Sep/invoice-example....
hhchenfx General Coding Help 5 4,502 Jul-07-2021, 01:34 AM
    Thread: Reading data to python: turn into list or dataframe
Post: Reading data to python: turn into list or datafram...

Hi, I tried 3 different ways to read csv data into python. The 1st and 2nd methods turn data to dataframe and list, and they both work OK The 3rd method, return something with: type(dt): <class...
hhchenfx General Coding Help 2 5,394 Jun-01-2021, 04:06 AM
    Thread: Helps with reading csv file - 3 methods
Post: RE: Helps with reading csv file - 3 methods

Hi, The text.csv has 2 columns: id info 1, From: abc to xyz 2, From abc yxz I want to print the data out. The second code error is: with open("C:\temp\text.csv", "r") as text: OSError: [Errno 22] In...
hhchenfx General Coding Help 4 3,291 May-13-2021, 02:59 AM
    Thread: Helps with reading csv file - 3 methods
Post: Helps with reading csv file - 3 methods

Hi Everyone, I try 3 different ways to read csv data and only 1 works. Can you please help to fix the not working code? Thank you so much. HHC #Working import pandas as pd df1 = pd.read_csv (r'C:\tem...
hhchenfx General Coding Help 4 3,291 May-13-2021, 01:37 AM

User Panel Messages

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