Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to set pandas dataframe as global

import pandas as pd

data = pd.DataFrame({'A' : [1, 2, 3, 4],
                     'B' : [1,2,3,4]})

def test(data):
   data =  data + 1
   return data

data = test(data)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #pandas #dataframe #global
ADD COMMENT
Topic
Name
1+9 =