7 questions
0
votes
0
answers
29
views
Kotlin Notebook: Conversion of nested classes to Data Frames
I am struggling to figure out manipulation with nested classes in data frames. I have prepared simple example to to demonstrate it
data class User(
val firstName: String,
val lastName: String,
...
5
votes
3
answers
409
views
Can not use kotlinx-datetime:0.7.1 library with rememberDatePickerState() function of material3
Material3 rememberDatePickerState() crashing in desktop and iOS platforms.
I am using kotlin = "2.2.10" version for my Kotlin Compose Multiplatform (KMP/CMP) project. It runs fine on android ...
1
vote
1
answer
232
views
With kotlin-notebook, how do I use DataFrame.readCsv to parse a column of dates formatted mm/dd/yyyy?
The latest release (0.15.0) of the Dataframe library for Kotlin Notebook uses the method readCsv (note: lowercase sv), and in the following code, I'm using it to read in a CSV of my Discover card ...
1
vote
1
answer
102
views
Kotlin Notebooks: How to replace null values with values based on another column
Say I have the dataframe like this:
val df = dataFrameOf("name", "age")(
"Alice", 15,
"Bob", 20,
null, 100
)
Then I want to replace null in the ...
1
vote
2
answers
613
views
Adding rows to an empty typed DataFrame
Given a @DataSchema how do I go about creating an empty DataFrame<MySchema> and then adding rows?
I tried val df = emptyDataFrame<MySchema>() but df.append(...) results in an exception (...
2
votes
0
answers
318
views
Changing the number format of a column in Kotlin Dataframe
I'm totally new to Kotlin Dataframes and the documentation seems patchy. I have a dataframe containing a count of items and a calculated percentage of total:
countsDF.groupBy("type").count()....
0
votes
1
answer
228
views
Carthesian product of columns in Kotlin Dataframe
Is there a way to create a carthesian product (all possible pairs of values) of two columns in Kotlin Dataframe (similar to Pandas for Python) in form of a DataFrame instance?
It can naturally be ...