Python Forum
How to extract specific information from json database?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract specific information from json database?
#3
Here I upload the data that is a subsample of pandas df. I saved it as csv. I tried to run the code (skipping the first line as my df is not saved as a separate file on the hard disk) and got the error:

Error:
AttributeError: 'DataFrame' object has no attribute 'read'
The list of Amino Acids is as follows:

AminoAcid = ['Alaninecp1252', 'Argininecp1252', 'Aspartic acidcp1252', 'Cystinecp1252', 'Glutamic acidcp1252', 'Glycinecp1252', 'Histidinecp1252',  'Hydroxyprolinecp1252',  'Isoleucinecp1252', 'Leucinecp1252', 'Lysinecp1252', 'Methioninecp1252', 'Phenylalaninecp1252', 'Prolinecp1252', 'Serinecp1252', 'Threoninecp1252', 'Tryptophancp1252', 'Tyrosinecp1252', 'Valinecp1252']    
Can you, please take a look at the data and advise me how to proceed.

Attached Files

.csv   df1.csv (Size: 172.89 KB / Downloads: 28)
Reply


Messages In This Thread
RE: How to extract specific information from json database? - by Alberto - Feb-05-2018, 06:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Training a model to identify specific SMS types and extract relevant data? lord_of_cinder 0 999 Oct-10-2022, 04:35 AM
Last Post: lord_of_cinder
  extract specific content in a pandas dataframe with a regex? steve1040 0 13,579 Oct-05-2017, 03:17 AM
Last Post: steve1040

Forum Jump:

User Panel Messages

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