Firstly install pandoc using pip:
pip install pandoc
or if you're using Mac:
brew install pandoc
| [18:00:02] [Netty Epoll Server IO #1/WARN]: Failed to initialize a channel. Closing: [id: 0x1d04d10f, L:/127.0.0.1:25568 - R:/127.0.0.1:55747] | |
| java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper; | |
| at com.comphenix.protocol.events.ListeningWhitelist.toString(ListeningWhitelist.java:241) ~[?:?] | |
| at java.lang.String.valueOf(String.java:2994) ~[?:1.8.0_131] | |
| at java.lang.StringBuilder.append(StringBuilder.java:131) ~[?:1.8.0_131] | |
| at com.comphenix.protocol.reflect.PrettyPrinter.printValue(PrettyPrinter.java:273) ~[?:?] | |
| at com.comphenix.protocol.reflect.PrettyPrinter.printObject(PrettyPrinter.java:246) ~[?:?] | |
| at com.comphenix.protocol.reflect.PrettyPrinter.printObject(PrettyPrinter.java:251) ~[?:?] | |
| at com.comphenix.protocol.reflect.PrettyPrinter.printValue(PrettyPrinter.java:285) ~[?:?] | |
| at com.comphenix.protocol.reflect.PrettyPrinter.printValue(PrettyPrinter.java:257) ~[?:?] |
| # This is the main configuration file for Bukkit. | |
| # As you can see, there's actually not that much to configure without any plugins. | |
| # For a reference for any variable inside this file, check out the Bukkit Wiki at | |
| # http://wiki.bukkit.org/Bukkit.yml | |
| # | |
| # If you need help on this file, feel free to join us on irc or leave a message | |
| # on the forums asking for advice. | |
| # | |
| # IRC: #spigot @ irc.spi.gt | |
| # (If this means nothing to you, just go to http://www.spigotmc.org/pages/irc/ ) |
| # This is the main configuration file for Spigot. | |
| # As you can see, there's tons to configure. Some options may impact gameplay, so use | |
| # with caution, and make sure you know what each option does before configuring. | |
| # For a reference for any variable inside this file, check out the Spigot wiki at | |
| # http://www.spigotmc.org/wiki/spigot-configuration/ | |
| # | |
| # If you need help with the configuration or have any questions related to Spigot, | |
| # join us at the IRC or drop by our forums and leave a post. | |
| # | |
| # IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ ) |
| # This is the main configuration file for Paper. | |
| # As you can see, there's tons to configure. Some options may impact gameplay, so use | |
| # with caution, and make sure you know what each option does before configuring. | |
| # | |
| # If you need help with the configuration or have any questions related to Paper, | |
| # join us in our IRC channel. | |
| # | |
| # IRC: #paper @ irc.spi.gt ( http://irc.spi.gt/iris/?channels=paper ) | |
| # Wiki: https://paper.readthedocs.org/ | |
| # Paper Forums: https://aquifermc.org/ |
| #Minecraft server properties | |
| #Sat Jun 03 17:58:30 CEST 2017 | |
| spawn-protection=16 | |
| query.port=25568 | |
| server-name=Unknown Server | |
| generator-settings= | |
| force-gamemode=true | |
| allow-nether=false | |
| gamemode=2 | |
| broadcast-console-to-ops=true |
| Process: wxformbuilder [59491] | |
| Path: /Users/USER/*/wxFormBuilder.app/Contents/MacOS/wxformbuilder | |
| Identifier: wxformbuilder | |
| Version: 3.5 RC2 (3.5 RC2) | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: wxformbuilder [59491] | |
| User ID: 501 | |
| Date/Time: 2017-12-24 19:57:44.482 +0100 |
Firstly install pandoc using pip:
pip install pandoc
or if you're using Mac:
brew install pandoc
| {"01.11.Z": "Uprawa zbóż, roślin strączkowych i roślin oleistych na nasiona, z wyłączeniem ryżu", "01.12.Z": "Uprawa ryżu", "01.13.Z": "Uprawa warzyw, włączając melony oraz uprawa roślin korzeniowych i roślin bulwiastych", "01.14.Z": "Uprawa trzciny cukrowej", "01.15.Z": "Uprawa tytoniu", "01.16.Z": "Uprawa roślin włóknistych", "01.19.Z": "Pozostałe uprawy rolne inne niż wieloletnie", "01.21.Z": "Uprawa winogron", "01.22.Z": "Uprawa drzew i krzewów owocowych tropikalnych i podzwrotnikowych", "01.23.Z": "Uprawa drzew i krzewów owocowych cytrusowych", "01.24.Z": "Uprawa drzew i krzewów owocowych ziarnkowych i pestkowych", "01.25.Z": "Uprawa pozostałych drzew i krzewów owocowych oraz orzechów", "01.26.Z": "Uprawa drzew oleistych", "01.27.Z": "Uprawa roślin wykorzystywanych do produkcji napojów", "01.28.Z": "Uprawa roślin przyprawowych i aromatycznych oraz roślin wykorzystywanych do produkcji leków i wyrobów farmaceutycznych", "01.29.Z": "Uprawa pozostałych roślin wieloletnich", "01.30.Z": "Rozmnażanie roślin", " |
| # load files from CSV exported from excel | |
| # current XLS files are available here: https://stat.gov.pl/Klasyfikacje/doc/pkd_07/pkd_07.htm | |
| import csv | |
| import json | |
| with open('pkd.csv', newline='') as csvfile: | |
| csvreader = csv.reader(csvfile, delimiter=';') | |
| pkd = {} | |
| for row in csvreader: |