Giter Site home page Giter Site logo

julia convert_raw_ngsim_to_trajdatas() got error "no method matching rename!(::DataFrames.Index, ::Symbol, ::Symbol)" about ngsim_env HOT 3 CLOSED

ViviXiang avatar ViviXiang commented on July 17, 2024
julia convert_raw_ngsim_to_trajdatas() got error "no method matching rename!(::DataFrames.Index, ::Symbol, ::Symbol)"

from ngsim_env.

Comments (3)

djp42 avatar djp42 commented on July 17, 2024

Hi ViviXiang,

Thanks for the question! Which version of Julia are you using? Alternatively, there might be a broken dependency in the DataFrames / NGSIM package.

The most up-to-date DataFrames has a different renaming function than the one NGSIM seems to call, according to julia wikibooks. It seems like it should be rename!(df, :old => :new) instead of rename!(df, :old, :new) at ngsim_trajdata.jl:37. The NGSIM package lives here: . Please start an issue there if we know it isn't ngsim_env specific.

Action items for you:

  • Try changing line 37 as above and see if it solves your issue. Let me know if it does or does not.
  • Open a new issue in the NGSIM repository with the result of your changes. Be sure to include your julia version.

CC: @MaximeBouton - does the above sound reasonable?

from ngsim_env.

ViviXiang avatar ViviXiang commented on July 17, 2024

@djp42 Using rename!(df, :old => :new) instead of rename!(df, :old, :new) at [ngsim_trajdata.jl:37] really helps, thanks very much for your help.

from ngsim_env.

MaximeBouton avatar MaximeBouton commented on July 17, 2024

Could you maybe submit a PR or restrict the version of dataframes?

from ngsim_env.

Related Issues (20)

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.