Coder Social home page Coder Social logo

thombashi / pytablereader Goto Github PK

View Code? Open in Web Editor NEW
105.0 9.0 10.0 981 KB

A Python library to load structured table data from files/strings/URL with various data format: CSV / Excel / Google-Sheets / HTML / JSON / LDJSON / LTSV / Markdown / SQLite / TSV.

Home Page: https://pytablereader.rtfd.io/

License: MIT License

Python 80.41% HTML 19.30% Makefile 0.29%
python-library reader table csv excel html json ltsv markdown mediawiki tsv sqlite google-sheets pandas pandas-dataframe

pytablereader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pytablereader's Issues

How to export to dict?

I've got this markdown table:

'|Borrower|Amount Given|Amount Repaid|Unpaid?|Original Thread|Date Given|', '|:--|:--|:--|:--|:--|:--|', '|zombievortex|250.00|250.00||[Original Thread](https://www.reddit.com/r/borrow/comments/9wksak/req_250_chicago_il_usa_280_by_124_paypal/)|Nov 13, 2018|', '|zombievortex|150.00|150.00||[Original Thread](https://www.reddit.com/r/borrow/comments/9txiri/req_150_chicago_il_usa_165_by_1110_paypal/)|Nov 3, 2018|', '|zombievortex|60.00|60.00||[Original Thread](https://www.reddit.com/r/borrow/comments/9rslh7/req_60_chicago_il_usa_70_by_112_paypal_prearranged/)|Oct 27, 2018|', '|zombievortex|20.00|20.00||[Original Thread](https://www.reddit.com/r/borrow/comments/9pq90e/req_20_chicago_il_usa_2250_by_1026_paypal_venmo/)|Oct 20, 2018|'

How could I convert it to a dict? I tried converting it to a pandas dataframe but nothing was outputted:

p = pytablereader.MarkdownTableTextLoader(t)
for i in p.load():
    print(i.as_dataframe())

how do i provide type hints for a jsonlines file

if i have the following json:

{"hoge": 4, "foo": "abc"}
{"hoge": 12, "foo": "xyz"}
{"hoge": 12, "foo": "xyz", "bar":{"foo":10}}

is it then possible to supply type hints like hoge:int, foo: str, bar: dict=None or just hoge:int, foo: str, bar: str=None

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.