gitio-dataframe-op / demo.yaml
lint's picture
Upload folder using huggingface_hub
16fc100
lite_metadata:
gradio_version: 3.32.0
liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: Given a pandas dataframe, convert values to integers and multiply them
by their column index
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
- class_string: gradio.components.Dataframe
kwargs:
label: df
type: pandas
outputs:
- class_string: gradio.components.Dataframe
kwargs:
label: output
type: pandas
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
- label: df
postprocessing: null
func_kwargs: {}
source: "import pandas as pd\n\n\ndef convert_and_multiply(df):\n return\
\ df.apply(lambda x: x.astype(int) * x.index, axis=1)\n"