Coder Social home page Coder Social logo

simple-grader's People

Contributors

bcaddy avatar macarooncookie avatar

simple-grader's Issues

Refactor the code to add modularity

The program is all in one giant block right now. Refactoring to add functions would substantially enhance readability and ease of extensibility

"\" Causes an bad escape error

Error Message

Traceback (most recent call last):
File "/Users/Bob/Documents/python_library/Simple-Grader/Simple Grader.py", line 289, in
main()
File "/Users/Bob/Documents/python_library/Simple-Grader/Simple Grader.py", line 42, in main
student_index = Student_Finder()
File "/Users/Bob/Documents/python_library/Simple-Grader/Simple Grader.py", line 186, in Student_Finder
student = Student_Searcher(last_name, grades, 'Last Name')
File "/Users/Bob/Documents/python_library/Simple-Grader/Simple Grader.py", line 230, in Student_Searcher
student = dataset[dataset[search_type].str.contains(name, case=False)]
File "/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py", line 1843, in wrapper
return func(self, *args, **kwargs)
File "/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py", line 2702, in contains
self._parent, pat, case=case, flags=flags, na=na, regex=regex
File "/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py", line 344, in str_contains
regex = re.compile(pat, flags=flags)
File "/anaconda3/lib/python3.7/re.py", line 234, in compile
return _compile(pattern, flags)
File "/anaconda3/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/anaconda3/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/anaconda3/lib/python3.7/sre_parse.py", line 930, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "/anaconda3/lib/python3.7/sre_parse.py", line 426, in _parse_sub
not nested and not items))
File "/anaconda3/lib/python3.7/sre_parse.py", line 507, in _parse
code = _escape(source, this, state)
File "/anaconda3/lib/python3.7/sre_parse.py", line 402, in _escape
raise source.error("bad escape %s" % escape, len(escape))
re.error: bad escape \m at position 0

Doesn't currently work with Canvas

Canvas formats their CSV files differently and the program needs some modifications to work with Canvas. The primary issue is that Canvas doesn't store first and last names in different columns, they're stored in one column which makes searching more challenging. Canvas also has an extra header line.

Add case insensitivity and partial searching

Currently the name search is case sensitive and I believe only supports complete matching. Add functionality that allows partial searching and removes case sensitivity

Edit: I thought it only supported complete searches but upon closer inspection the program already supports partial searches.

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.