GithubHelp home page GithubHelp logo

Comments (3)

tshort avatar tshort commented on May 13, 2024

It may be that the readme is ahead of the released version of
DataFramesMeta. You may have to checkout the most recent commit to get this
feature. I'm not at a location I can check easily.

---------- Forwarded message ----------
From: dun10p [email protected]
Date: Tue, May 24, 2016 at 3:22 PM
Subject: [JuliaStats/DataFramesMeta.jl] @newCol in @byrow! not defined (#54)
To: "JuliaStats/DataFramesMeta.jl" [email protected]

Hi. Sorry to be a bother. I'm getting an error saying "UndefVarError
@newCol not defined", when running the block in the readme that includes
@byrow! and @newCol as displayed below.

df = DataFrame(A = 1:3, B = [2, 1, 2])
df2 = @byrow! df begin
@newCol colX::Array{Float64}
@newCol colY::DataArray{Int}
:colX = :B == 2 ? pi * :A : :B
if :A > 1
:colY = :A * :B
end
end

I'm trying to apply this to my own dataframe to bring separate time and
date columns into a single column that contains DateTime elements. I was
thinking this would work:

dateForm = Dates.DateFormat("d-u-y H")
newMachineData = @byrow! MachineData begin
@newCol DT::Array{DateTime}
:DT = DateTime(string(:DATE, " ", :HOUR), dateForm)
end

However, the error with @newCol is raised. It's likely I'm missing
something simple though. I am new to Julia


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#54

from dataframesmeta.jl.

nalimilan avatar nalimilan commented on May 13, 2024

Yes, last version was in December, and these functions are newer than that AFAIK. It's indeed always confusing that you get the development version of the README when you browser a GitHub project. In the long-term, I guess documentation should move to Documenter.jl anyway.

from dataframesmeta.jl.

dun10p avatar dun10p commented on May 13, 2024

Thank you guys! I apologize for the mistake.

from dataframesmeta.jl.

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.