Giter Site home page Giter Site logo

Comments (5)

epogrebnyak avatar epogrebnyak commented on August 25, 2024

False appears for example in https://github.com/mini-kep/parser-rosstat-kep/blob/dev/data/processed/2017/12/dfq.csv

2017-12-31,2017,4,False,False,False,False,False,False,False,False,False,-21679.7,-11191.2,-7080.8,-22069.0,-10971.5,-7584.3,219.8,-503.5,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False

from parser-rosstat-kep.

liepieshov avatar liepieshov commented on August 25, 2024

In parser.py line 189 you use the function to_float with argument "", which returns False

from parser-rosstat-kep.

epogrebnyak avatar epogrebnyak commented on August 25, 2024

Test nededed:

# TODO: need a test on really a minimal setup for method below
# write test setting and asserts in this file before test
def extract_values(self):
"""Use ._extract_values() stream and filter None values from it.
"""
def has_value(d):
return d['value'] is not None
return filter(has_value, self._extract_values())

from parser-rosstat-kep.

epogrebnyak avatar epogrebnyak commented on August 25, 2024

And another test needed:

# TODO: convert to unit test
progress = HeaderParsingProgress([['abc', 'zzz'], ['def', '...']])
assert progress.is_parsed() is False
progress.set_as_known('abc')
progress.set_as_known('def')
assert progress.is_parsed() is True
assert '<abc>' in str(progress)

from parser-rosstat-kep.

liepieshov avatar liepieshov commented on August 25, 2024

#160 @epogrebnyak , both Done

from parser-rosstat-kep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.