Closed znicholls closed 3 years ago
@danielhuppmann thoughts?
Three answers:
value
and (column) name
.name
arg is optional because if value
is a named series, the series name is used, so changing the order is problematic.set_meta()
, I would rather suggest to add a new (additional) setter-method
df[name] = value
where value
can be a str, number, list of correct length, or (indexed) series.
Nice nice nice
Closing as no further comment for almost a year.
Standard python syntax for setting values in dictionaries is
dict[key] = value
. pyam'sset_meta
instead usesset_meta(value, key)
. Am I the only one who finds this backwards or is this something that could be changed in an (API-breaking) version in future?