Class: Wandb::Table
- Inherits:
-
Object
- Object
- Wandb::Table
- Defined in:
- lib/wandb.rb
Overview
Table class
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#data ⇒ Object
Returns the value of attribute data.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
- #__pyptr__ ⇒ Object
- #add_column(name, data) ⇒ Object
- #add_data(*args) ⇒ Object
- #get_column(name) ⇒ Object
-
#initialize(data: {}, columns: []) ⇒ Table
constructor
A new instance of Table.
- #to_pandas ⇒ Object
Constructor Details
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
213 214 215 |
# File 'lib/wandb.rb', line 213 def columns @columns end |
#data ⇒ Object
Returns the value of attribute data.
213 214 215 |
# File 'lib/wandb.rb', line 213 def data @data end |
#table ⇒ Object
Returns the value of attribute table.
213 214 215 |
# File 'lib/wandb.rb', line 213 def table @table end |
Instance Method Details
#__pyptr__ ⇒ Object
221 222 223 |
# File 'lib/wandb.rb', line 221 def __pyptr__ @table end |
#add_column(name, data) ⇒ Object
229 230 231 |
# File 'lib/wandb.rb', line 229 def add_column(name, data) @table.add_column(name, data) end |
#add_data(*args) ⇒ Object
225 226 227 |
# File 'lib/wandb.rb', line 225 def add_data(*args) @table.add_data(*args) end |
#get_column(name) ⇒ Object
233 234 235 |
# File 'lib/wandb.rb', line 233 def get_column(name) @table.get_column(name) end |
#to_pandas ⇒ Object
245 246 247 |
# File 'lib/wandb.rb', line 245 def to_pandas @table.get_dataframe end |