Skip to content

Commit

Permalink
added auto parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijenchawra committed May 11, 2021
1 parent d2b14de commit ae67c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factors/factors_dataframes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Convert a Factor to a DataFrame
"""
function Base.convert(::Type{DataFrame}, ϕ::Factor)
df = DataFrames.DataFrame(pattern(ϕ))
df = DataFrames.DataFrame(pattern(ϕ), :auto)
DataFrames.rename!(df, [f => t for (f, t) = zip(names(df), names(ϕ))] )
df[!,:potential] = ϕ.potential[:]

Expand Down

0 comments on commit ae67c78

Please sign in to comment.