Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Replacing values for specific columns in Panda data structure
Post: RE: Replacing values for specific columns in Panda...

You guys are slow. #Replace invalid grades with Nans Data.iloc[:,2:] = Data.iloc[:,2:].where((Data < 12) & (Data > -3))
Padowan Data Science 1 14,699 Nov-27-2017, 08:21 PM
    Thread: Replacing values for specific columns in Panda data structure
Post: Replacing values for specific columns in Panda dat...

Hello! Im trying to replace invalid values ( x< -3 and x >12) with 'nan's in a pandas data structure . The first two columns consist of ids and names respectively, and should not be modified. I...
Padowan Data Science 1 14,699 Nov-26-2017, 11:42 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

well yes, but originally it was the for loop which was the problem... Now I figured out how to iterate over the values in the data. But the code is not modifying the "memory" index array ( I called t...
Padowan Homework 14 12,731 Nov-26-2017, 04:26 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

print()sry, thought I had corrected that..
Padowan Homework 14 12,731 Nov-26-2017, 02:38 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

I can now upload attachments, here is the needed csv file..
Padowan Homework 14 12,731 Nov-25-2017, 07:56 PM
    Thread: Just bought bitcoins
Post: RE: Just bought bitcoins

I have friends who check the price all the time, they became straight up addicts.. :p Anyone studied the C20 bitcoin index fund? Crypto 20 - bitcoin index fund website
Padowan Bar 19 10,472 Nov-25-2017, 07:08 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

Ok, maybe its the copy-pasting business.. Im running this, don't know if that helps. Spyder - Python 3.6.1 64bits, Qt 5.6.2, PyQt5 5.6 on Darwin on Mac OS 10.12.6 I am at 5 posts now, I'll try to u...
Padowan Homework 14 12,731 Nov-25-2017, 06:56 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

Ok, Im assuming that you loaded a similiar csv file? The whole code is dependent on the csv file.. If not, try inserting a # in front of the last line of code. This last line will not work because it...
Padowan Homework 14 12,731 Nov-25-2017, 06:49 PM
    Thread: How to get python to read my file correctly?
Post: RE: Where to save a file in order for python to re...

You can check your current working directory with this; import os cwd = os.getcwd()and change the current working directory to any path you want with; os.chdir(path)An example of a Mac path could be...
Padowan General Coding Help 7 8,442 Nov-25-2017, 06:29 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: RE: Iterating over pandas.df to check for values o...

Sure... from the csv file.. s123456 Luetta Macon 2 10.2 3 1 0 s123457 Zola Metoyer 2.1 -2 0 0 s123458 Leora Ewan 3.7 -3 3 0 2 s123459 Deanne Fetter 6.8 -1 0 0 0 s123460 Onie Kyler 12 -2 2 5 0 s1234...
Padowan Homework 14 12,731 Nov-25-2017, 06:17 PM
    Thread: Iterating over pandas.df to check for values out of range
Post: Iterating over pandas.df to check for values out o...

Hello! I am taking a introductory course in python programming at uni., 3 weeks in., and have been assigned to make a student grading script. I am having problems iterating over grade values found i...
Padowan Homework 14 12,731 Nov-25-2017, 05:23 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020