Closed mooreryan closed 1 month ago
Here is the spec for the Dataframe.dtypes function:
Dataframe.dtypes
https://github.com/elixir-explorer/explorer/blob/ca2ca1f80e4cb994f3182e8d59e9608bad95385e/lib/explorer/data_frame.ex#L2051
Here is the spec for the dtypes field in the DataFrame struct:
dtypes
DataFrame
https://github.com/elixir-explorer/explorer/blob/ca2ca1f80e4cb994f3182e8d59e9608bad95385e/lib/explorer/data_frame.ex#L262
Given that (and the function's actual behavior), the spec for Dataframe.dtypes should probably be something like this:
@spec dtypes(df :: DataFrame.t()) :: %{String.t() => Explorer.Series.dtype()}
Yes, please do send a PR!
Here is the spec for the
Dataframe.dtypes
function:https://github.com/elixir-explorer/explorer/blob/ca2ca1f80e4cb994f3182e8d59e9608bad95385e/lib/explorer/data_frame.ex#L2051
Here is the spec for the
dtypes
field in theDataFrame
struct:https://github.com/elixir-explorer/explorer/blob/ca2ca1f80e4cb994f3182e8d59e9608bad95385e/lib/explorer/data_frame.ex#L262
Given that (and the function's actual behavior), the spec for
Dataframe.dtypes
should probably be something like this: