Giter Site home page Giter Site logo

Comments (7)

Hossein-Tohidi avatar Hossein-Tohidi commented on June 10, 2024 1

Thanks @FlorentinD, the logic you referred to makes sense to me and it works fine.

from graph-data-science-client.

FlorentinD avatar FlorentinD commented on June 10, 2024

@Hossein-Tohidi , thank you for reporting this issue.
I could further see, that it only occurs with the Arrow endpoint.

As an intermediate workaround, you could initialize the client with arrow=False.
You can track the progress at #564

from graph-data-science-client.

Hossein-Tohidi avatar Hossein-Tohidi commented on June 10, 2024

Thanks for the reply @FlorentinD. it is working fine with arrow=False and adding listNodeLabels=True option inside gds.graph.nodeProperties.stream function.

from graph-data-science-client.

Hossein-Tohidi avatar Hossein-Tohidi commented on June 10, 2024

I just realized that it is not working with separate_property_columns=True, option!

from graph-data-science-client.

FlorentinD avatar FlorentinD commented on June 10, 2024

Looking through your edits, it works if you specify listNodeLabels=True as well?
As the default is False, it makes sense this column is only present if you set it explicitly (see https://neo4j.com/docs/graph-data-science/current/management-ops/graph-reads/graph-stream-nodes/).

from graph-data-science-client.

Hossein-Tohidi avatar Hossein-Tohidi commented on June 10, 2024

Thanks again for your reply.
The following code, I expect to return the nodeLabels as well but it does not (it should be part of the column we pivot on that to get a wide table from a long table, I guess).

print(gds.graph.nodeProperties.stream(G, ["twl",'twu'],listNodeLabels=True, separate_property_columns=True))  
#   nodeId  twl   twu
#0       0  0.0   7.0
#1       1  0.0  20.0
#2       2  0.0  20.0

from graph-data-science-client.

FlorentinD avatar FlorentinD commented on June 10, 2024

Thanks for this find as well. We definitely missed out on tests for this feature on the client side :/

The PR is ready for review now with this fix as well.

The actual workaround for now it to not use arrow=False + separate_property_columns=True and widen the result yourself.
You can find the logic for this here.
Maybe you even have an idea for a better version?

from graph-data-science-client.

Related Issues (19)

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.