Hi, I'm a newbie. I read the tutorials a few times but I still can't figure out how to do this.
Let say I have a text file like this: # bug fix for display formats to avoid run time errors pandas.set_option('display.float_format', lambda x:'%.2f'%x) data = pandas.read_csv('gapminder.csv') # convert to numeric format data['internetuserate'] = pandas.to_numeric(data['internetuserate'], errors= 'coerce') data['urbanrate'] = pandas.to_numeric(data['urbanrate'], errors='coerce') data['femaleemployrate'] = pandas.to_numeric(data['femaleemployrate'], errors='coerce') I need to substitute pandas with pd and numpy with np etc. (step 1) Can I create a node and put the code into it? (step 2) And then create another node where I write a script to automate a few repetitive substitutions? (step 3) If so, how do I get step 3 and below going? Can I read the body of the text node in to a variable and then just write python code to deal with it? Then I have to output it to the console, a new node or file, right? Any hint is appreciated. Thanks! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.