-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolved reference when using Properties to access #703
Comments
Also a bit confusing that there's no tab which uses Indexes. I do want to know that you can also select a column using an index, |
Also here Properties and Accessors are completely identical code, except the
|
Hi there! In Gradle projects, it requires a bit more configuration; We namely need to tell the compiler how and where to generate these extension properties.
As for indexing, you're right, it's mentioned only here as far as I can see. That said, our documentation website is far from all-inclusive and needs a lot of work still. Discovering the API and possibilities from the IDE's autocomplete is the best way to explore the functionalities of DataFrame :). Hopefully, this answered some of your questions/concerns. Feel free to reach out if you have more questions! |
Re indexing, the link you provided indexes the row, not the column. Otherwise thank you for clarification! I haven't even looked into DataSchemas documentation, since I never had any references towards it. It could be useful to at least link to it from Getting Started on Gradle, and ideally in each of the "Properties" tab, too. However, I understand that the documentation is not the priority yet, now. Something like a disclaimer "Warning: documentation is in beta mode, missing information and discrepancies are possible" would be nice, so that users don't expect it to be perfect, double check things and don't get upset when something doesn't work. |
In general, do you need feedback at this stage? A few things I noticed which are different from pandas -
My use case is I have a CSV with 20 columns, out of which I only need 4, and two of them need to be duplicated. So I want to load, select required columns, and only then provide their headers.
I understand that workarounds exist - create a fake header corresponding to indexes, (I'm still unsure how to rename the header, though, apart from creating a new DataFrame.) |
Also this This sample prints
|
Feedback is appreciated :) To pull the data by column accessor in DataRow context you can use either invoke or get functions |
Thanks so much! Aha, and then I assume I cannot rename the header because Dataframe is sort of unmutable in the persistent Kotlin style, but I can create a new df with the new titles. |
Exactly this, yes |
I'm trying to use Properties to access a column, and it throws "Unresolved reference: title". Here's my demo repo, branch
demo
.I'm using Dataframe version "0.13.1", as suggested in the onboarding documentation, and movies.csv dataset.
(Following the getColumns doc page.)
It is extremely bizarre as the documentation shows the Properties tabs on almost every single page and yet doesn't mention if I need any extra imports or something else for it to work.
The text was updated successfully, but these errors were encountered: