Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python outputs to Excel
Post: Python outputs to Excel

Hi, I don't even know how to describe my problem but I'll try. I receive the same .txt file and my python code computes it and then outputs .csv. But this time I have a problem with my output, some o...
NewBiee Data Science 3 904 Nov-15-2023, 09:49 AM
    Thread: UserWarning: Could not infer format
Post: UserWarning: Could not infer format

Hi, I have this code: def get_rework_flags(logs, clean_df): """ Gets the flags used for rework """ logger = logs['logger'] # logger.info('Rework: Setting index on clean df') # clean_d...
NewBiee Data Science 2 4,021 Sep-13-2023, 07:40 AM
    Thread: FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque
Post: RE: FutureWarning: Logical ops (and, or, xor) betw...

Thank you for your help so far. I've made changes to my code as per your help: def get_flags(series, flags, regex_flag): """ Identifies whether the series contains the flags under consideration....
NewBiee Data Science 5 1,697 Sep-12-2023, 07:34 AM
    Thread: Cannot convert from timedelta64[ns] to timedelta64[h]
Post: Cannot convert from timedelta64[ns] to timedelta64...

Hi, I have this piece of code that used to work. I have upgraded Numpy and Pandas and now they don't seem to work. def astype(self, dtype, copy: bool = True): # We handle # -->...
NewBiee Data Science 1 2,321 Sep-01-2023, 06:29 AM
    Thread: FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque
Post: RE: FutureWarning: Logical ops (and, or, xor) betw...

(Aug-31-2023, 03:53 PM)deanhystad Wrote: I think this is the problem: m = [False] * len(series)This is not a "Series, Index, or np.array". Try m = numpy.full((len(series), False). Hi, Thank you. I...
NewBiee Data Science 5 1,697 Sep-01-2023, 05:40 AM
    Thread: FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque
Post: FutureWarning: Logical ops (and, or, xor) between ...

I have had this method on my code, it's been working fine, but as of today my code fails on this method: def get_flags(series, flags, regex_flag): """ Identifies whether the series contains the f...
NewBiee Data Science 5 1,697 Aug-31-2023, 02:18 PM
    Thread: Filtering Data Frame, with another value
Post: RE: Filtering Data Frame, with another value

(Aug-21-2023, 09:14 AM)deanhystad Wrote: The errror message says the dtype for the Active column is "object", not "bool", yet you said in an earlier post. Output:Yes it's a bool. Active is a Column ...
NewBiee Data Science 9 1,460 Aug-21-2023, 10:53 AM
    Thread: Filtering Data Frame, with another value
Post: RE: Filtering Data Frame, with another value

(Aug-18-2023, 01:03 PM)deanhystad Wrote: And if you wanted to selecte df['Active'] == False you could do this. df = pd.read_excel(r"Test_2.xlsx") df_new = df[~df['Active']] print(df_new) Hi, I'...
NewBiee Data Science 9 1,460 Aug-21-2023, 08:25 AM
    Thread: Filtering Data Frame, with another value
Post: RE: Filtering Data Frame, with another value

Hi, Yes it's a bool. Active is a Column Name, it has 'True' and 'Flase' values.
NewBiee Data Science 9 1,460 Aug-18-2023, 12:20 PM
    Thread: Filtering Data Frame, with another value
Post: RE: Filtering Data Frame, with another value

Hi, Just used this: df = pd.read_excel(r"Test_2.xlsx") df_new = df[df['Active'] == 'TRUE'] print(df_new)But I'm still getting the same results: Output:Empty DataFrame Columns: [Active, UserName, R...
NewBiee Data Science 9 1,460 Aug-18-2023, 06:29 AM
    Thread: Filtering Data Frame, with another value
Post: Filtering Data Frame, with another value

I have a data frame with three columns (Active, UserName, Role): Quote:Active UserName Role FALSE 945480 Invoice Viewer FALSE 945480 Maintain Invoice Streams FALSE 945480 Maintain Payment Instruments...
NewBiee Data Science 9 1,460 Aug-17-2023, 09:09 AM
    Thread: FileNotFoundError: [WinError 2] The system cannot find the file specified
Post: FileNotFoundError: [WinError 2] The system cannot ...

Hi, I get this error when I run my code: Error:File "C:\Users\Me\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value FileNotFoundError: [WinEr...
NewBiee General Coding Help 2 1,630 Jul-31-2023, 08:39 AM

User Panel Messages

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