Фрілансер: dcnielsen
Поділитися:
Доповісти про конкурсну роботу

Encode/Decode

Simple solution with command line graphics and optional user inputs. Could not capture all the encoded output in a picture because the hot encoded outputs are really long (26x28 for alphabetical and even more for cities). Let me know if more proof of work is needed.

Конкурсна заявка №3 для                                                 python script to convert data

Публічна роз'яснювальна дошка

  • afterhourstech
    Організатор конкурсу
    • 5 роки(ів) тому

    ok hang tight, save your code, I may come back and buy it if I'm not able to make some tweaks on the other one.

    • 5 роки(ів) тому
    1. dcnielsen
      dcnielsen
      • 5 роки(ів) тому

      Okay, just send me a pm if you need it.

      • 5 роки(ів) тому
  • dcnielsen
    dcnielsen
    • 5 роки(ів) тому

    Also, just confirmed it works with python 3.4.3

    • 5 роки(ів) тому
  • afterhourstech
    Організатор конкурсу
    • 5 роки(ів) тому

    hi can you tell me how configurable the code is? I already awarded this to someone else but the code I got is an unmaintanable mess

    • 5 роки(ів) тому
    1. dcnielsen
      dcnielsen
      • 5 роки(ів) тому

      I used csv, sys, and argparse modules and I wrote it with python 2.7.6 (probably could make it run on 3+). I prefer as vanilla python as I can get for compatibility and maintainability (so no pandas or installing modules). For encode, I quickly read over the input file to get the row counts and lists of needed values, then I encode directly from the input file to the output file. The hot encodes are callable functions. I did this reduce the amount of memory needed (the full output file is over 100 gigs). The decode works pretty much the same except decodes.

      As for configuration, you can specify input and output files. You could likely add more functions easily with argparse.

      • 5 роки(ів) тому

Більше коментарів Обробка...