Coder Social home page Coder Social logo

read-protobuf's People

Contributors

mlshapiro avatar

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

Watchers

 avatar  avatar  avatar  avatar

read-protobuf's Issues

Proto2 file without any nested structure ends up with this error

File "/Users/vivek/PycharmProjects/TestCodes/codes/protobuf/test_person.py", line 145, in <module>
    df = read_protobuf(person_ser, new_person, flatten=True, prefix_nested=True)
  File "/Users/vivek/PycharmProjects/TestCodes/venv/lib/python2.7/site-packages/read_protobuf.py", line 143, in read_protobuf
    df = pd.DataFrame(data)
  File "/Users/vivek/PycharmProjects/TestCodes/venv/lib/python2.7/site-packages/pandas/core/frame.py", line 348, in __init__
    mgr = self._init_dict(data, index, columns, dtype=dtype)
  File "/Users/vivek/PycharmProjects/TestCodes/venv/lib/python2.7/site-packages/pandas/core/frame.py", line 459, in _init_dict
    return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
  File "/Users/vivek/PycharmProjects/TestCodes/venv/lib/python2.7/site-packages/pandas/core/frame.py", line 7356, in _arrays_to_mgr
    index = extract_index(arrays)
  File "/Users/vivek/PycharmProjects/TestCodes/venv/lib/python2.7/site-packages/pandas/core/frame.py", line 7393, in extract_index
    raise ValueError('If using all scalar values, you must pass'
ValueError: If using all scalar values, you must pass an index

python running time

hi!This library does a very good job of implementing the relevant functionality, but in the ipynb file, i see %time to calculate running time. It may be not very accurate, is it possible to compare his performance after a more accurate test?It doesn't really matter how fast it is, often the write and read times are acceptable, just exploring if there is a faster way to implement based on python.

Serializer

Hi, read-protobuf is more like a deserializer. I am wondering if it is possible to implement a serializer along with it. Is that more difficult?

ValueError: If using all scalar values, you must pass an index

I get the following error while using read_protobuf:

File "/usr/local/lib/python2.7/dist-packages/read_protobuf.py", line 143, in read_protobuf
df = pd.DataFrame(data)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 348, in init
mgr = self._init_dict(data, index, columns, dtype=dtype)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 459, in _init_dict
return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 7356, in _arrays_to_mgr
index = extract_index(arrays)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 7393, in extract_index
raise ValueError('If using all scalar values, you must pass'
ValueError: If using all scalar values, you must pass an index

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.