Skip to content

Migrate Netflix notebook to Beta-4 #1591

@zaleslaw

Description

@zaleslaw

Now it's failed in the section ## Lifetimes and Release Times
with the message


at Cell In[23], line 38, column 13: The integer literal does not conform to the expected type Double
at Cell In[23], line 38, column 16: The integer literal does not conform to the expected type Double
at Cell In[23], line 38, column 19: The integer literal does not conform to the expected type Double
at Cell In[23], line 38, column 24: The integer literal does not conform to the expected type Double
at Cell In[23], line 39, column 13: The integer literal does not conform to the expected type Double
at Cell In[23], line 39, column 18: The integer literal does not conform to the expected type Double
at Cell In[23], line 39, column 21: The integer literal does not conform to the expected type Double
at Cell In[23], line 39, column 26: The integer literal does not conform to the expected type Double


If you just fix with

plotBunch {
    add(p1, 0.0, 0.0, 500.0, 450.0)
    add(p2, 500.0, 0.0, 500.0, 450.0)
}

The

Image

plot is empty

Also, a problem with datetime

val cast_df = df
    .split { cast }.by(',').inplace()
    .add("size_cast") { "cast"<List<String>>().size }
    // Since we need the time in milliseconds since epoch for the plots, let's convert date_added to an Instant
    .convert { date_added }.with { it.atStartOfDayIn(TimeZone.UTC) }
cast_df


at Cell In[33], line 6, column 29: This declaration needs opt-in. Its usage must be marked with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'
at Cell In[33], line 6, column 39: This declaration needs opt-in. Its usage must be marked with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions