Skip to content

Tag: python

find value in JSON from list in text file

What I am trying to accomplish: Use contents of a text file to search for values in JSON file. My text file contains one entry per line. The will match values in the JSON file. I would like to iterate this list and return matches from the JSON file I have also tried including a for loop before the first

Delete rows where any column contains a certain string

I am dealing with a dataset that uses “..” as a placeholder for null values. These null values span across all of my columns. My dataset looks as follows: Country Code Year GDP growth (%) GDP (constant) AFG 2010 3.5 .. AFG 2011 .. 2345 AFG 2012 1.4 3372 ALB 2010 .. 4567 ALB 2011 .. 5678 ALB 2012 4…

python string not writing to a file

this function is being called by the way the file is correct ‘paragraphs.txt’ but when it runs it finishes with no errors but doesn’t write anything to the file git files file with problem: https://github.com/K-972/english_helper write to file test: https://github.com/K-972/file-write-test i…