Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()
Post: RE: ValueError: The truth value of a Series is amb...

I removed it and still getting the same error Error:runfile('F:/RockzFX Academy 2020/Trading/Intraday_Analysis/topost.py', wdir='F:/RockzFX Academy 2020/Trading/Intraday_Analysis') Traceback (most re...
Rejoice General Coding Help 6 3,265 Aug-25-2020, 03:50 PM
    Thread: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()
Post: RE: ValueError: The truth value of a Series is amb...

import csv import pandas as pd indexdf = pd.read_excel("F:\RockzFX Academy 2020\Trading\Intraday_Analysis\Index.xlsx",header=None) indexdf.set_index(indexdf.iloc[:,0],inplace=True,drop=False) day1 ...
Rejoice General Coding Help 6 3,265 Aug-24-2020, 05:14 PM
    Thread: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()
Post: RE: ValueError: The truth value of a Series is amb...

Error:runfile('F:/RockzFX Academy 2020/Trading/Intraday_Analysis/topost.py', wdir='F:/RockzFX Academy 2020/Trading/Intraday_Analysis') Traceback (most recent call last): File "<ipython-input-8-c...
Rejoice General Coding Help 6 3,265 Aug-24-2020, 01:29 PM
    Thread: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()
Post: ValueError: The truth value of a Series is ambiguo...

def rangetrendAnalysis(df1): if (df1['D1-OPEN'] > df1['D1-CLOSE']): return "Bearish" elif (df1['D1-OPEN'] < df1 ['D1-CLOSE']): return "Bullish" nextDaydf['Result'] = ran...
Rejoice General Coding Help 6 3,265 Aug-23-2020, 03:17 PM
    Thread: passing variable to function
Post: RE: passing variable to function

def R1(df): if df['OPEN']>df['CLOSE']: return "BEARISH" elif df['OPEN']<df['CLOSE']: return "BULLISH" day1['type analysis'] = df.apply(R1,axis=1)the above code ...
Rejoice General Coding Help 4 2,869 Aug-21-2020, 05:23 PM
    Thread: passing variable to function
Post: passing variable to function

am trying to pass two columns from two different dataframes, is there any way i can do it. I tried .apply however it will help me to pass two columns of same dataframe.
Rejoice General Coding Help 4 2,869 Aug-20-2020, 04:48 PM
    Thread: Cmparing columns in dataframe
Post: Cmparing columns in dataframe

hi, I have two dataframes df1 & df2. Both df1 & df2 have same index. I want to compare 2nd column of df1 with 3rd column of df2 and if it is equal or greater or lesser and then perform certain...
Rejoice General Coding Help 0 1,409 Aug-17-2020, 08:48 PM

User Panel Messages

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