lint commited on
Commit
858bbc1
·
1 Parent(s): 97b2306

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. __pycache__/gradify.cpython-310.pyc +0 -0
  2. demo.yaml +2 -2
__pycache__/gradify.cpython-310.pyc CHANGED
Binary files a/__pycache__/gradify.cpython-310.pyc and b/__pycache__/gradify.cpython-310.pyc differ
 
demo.yaml CHANGED
@@ -5,7 +5,7 @@ class_string: gradio.interface.Interface
5
  kwargs:
6
  title: gitio dataframe op
7
  description: Given a pandas dataframe, convert values to integers and multiply them
8
- by their row number
9
  article: null
10
  thumbnail: null
11
  theme: gradio/seafoam
@@ -32,4 +32,4 @@ kwargs:
32
  class_string: gradify.exec_to_dict
33
  kwargs:
34
  source: "import pandas as pd\n\n\ndef convert_and_multiply(df):\n return\
35
- \ (df.astype(int) * df.index).reset_index(drop=True)"
 
5
  kwargs:
6
  title: gitio dataframe op
7
  description: Given a pandas dataframe, convert values to integers and multiply them
8
+ by their column index
9
  article: null
10
  thumbnail: null
11
  theme: gradio/seafoam
 
32
  class_string: gradify.exec_to_dict
33
  kwargs:
34
  source: "import pandas as pd\n\n\ndef convert_and_multiply(df):\n return\
35
+ \ df.apply(lambda x: x.astype(int) * x.index, axis=1)\n"