Skip to content

added col "Launch Year/Last Time Buy" to compute default tdp only fro…#16

Closed
nadnein wants to merge 1 commit intoqbic-projects:mainfrom
nadnein:Nadja
Closed

added col "Launch Year/Last Time Buy" to compute default tdp only fro…#16
nadnein wants to merge 1 commit intoqbic-projects:mainfrom
nadnein:Nadja

Conversation

@nadnein
Copy link
Copy Markdown
Collaborator

@nadnein nadnein commented Mar 27, 2025

…m specs where the year is >= current year - 10; updated tests; TDP table is now final

…m specs where the year is >= current year - 10; updated tests; TDP table is now final
@nadnein nadnein requested a review from JosuaCarl March 27, 2025 09:19
@nadnein nadnein changed the title added col "Launch Year/Last Time Buy" to compute default tdp only frp… added col "Launch Year/Last Time Buy" to compute default tdp only fro… Mar 27, 2025
'cores': ['Total Cores', '# of CPU Cores', 'cores'],
'threads': ['cores', 'Total Cores', '# of CPU Cores', 'Total Threads', '# of Threads', 'threads']
'threads': ['cores', 'Total Cores', '# of CPU Cores', 'Total Threads', '# of Threads', 'threads'],
'Launch Year/Last Time Buy': ['Launch Year/Last Time Buy'],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this only once you use it (special case)

int currentYear = Year.now().getValue()

DataFrame specifications_filtered = specifications.rows({ row ->
def year = row.get("Launch Year/Last Time Buy") as Integer
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so that's how you select certain rows based on a criterium

setup:
DataFrame input = DataFrame
.foldByColumn("test_col", "tdp (W)")
.of("test_val_1", "test_val_2", "test_val_3", "test_val_4", "15-30", "15-30", "1.5/10", "2.3--5")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably document this behaviour in the Readme (select first valid number).

@nadnein nadnein closed this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants