File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -368,9 +368,18 @@ def decode_arff(fh):
368368 def _convert_array_format (data , array_format , attribute_names ):
369369 """Convert a dataset to a given array format.
370370
371- By default, the data are stored as a sparse matrix or a pandas
372- dataframe. One might be interested to get a pandas SparseDataFrame or a
373- NumPy array instead, respectively.
371+ Parameters
372+ ----------
373+ array_format : str
374+ Tag to attach to the dataset to get a pandas SparseDataFrame or a
375+ NumPy array instead.
376+ - If array_format='array'
377+ Converts non-sparse numeric data to numpy-array
378+ Enforces numeric encoding of categorical columns
379+ Missing values are represented as NaN in the dataframe
380+ - If array_format='dataframe'
381+ Convers sparse data to sparse dataframe
382+
374383 """
375384 if array_format == "array" and not scipy .sparse .issparse (data ):
376385 # We encode the categories such that they are integer to be able
You can’t perform that action at this time.
0 commit comments