pddf: Generate an ascii representation of a dataframe suitable for...

View source: R/pddf.R

pddfR Documentation

Generate an ascii representation of a dataframe suitable for pandas

Description

It's a dput for python pandas dataframe

Usage

pddf(df, outfile = "", dfname = "df")

Arguments

df

a data.frame

outfile

a .py file path or the dataframe will be printed on stdout

dfname

name given to the pd.DataFrame

Examples

pddf(Indometh)
pddf(data.frame("a" = pi))


lbraglia/lbmisc documentation built on April 29, 2024, 11:27 a.m.