Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Sorry for the inconvenience caused here.
Let me explain further as much as I can:
Below is how my table is structured:
<table>
<thead>
All header columns here.....
</thead>
<t... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-27-2023, 01:30 PM |
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Hmm..I faced the issue, after couple of testing where, if I have TEXT B, it'll color RED and it doesn't color TEXT A even if the TEXT is present in the table.
TEXT B ( cell: RED )
TEXT B ( cell: RED ... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-20-2023, 12:16 PM |
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Thanks much, this worked out like charm **smile** |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-19-2023, 05:37 PM |
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Also to add, I tested if html.replace, works it does work.
html = html.replace("Text B","Green)Output was:
5678 ABCDEF Green
Think some how the color is been stripped of in the output.
Yes, I do ne... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-19-2023, 03:28 PM |
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Not sure if the table structure is not allowing the color to work?
<table>
<thead>
All header columns here.....
</thead>
<tbody>
<tr><td style="text-align: right ">... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-19-2023, 01:51 PM |
|
|
Thread: Color a table cell based on specific text
Post: RE: Color a table cell based on specific text
Hi,
Am trying to add the table to e-mail body, which is why using html.replace here.
My bad, sorry it should be html for all 3:
html = html.replace("<thead>","<thead style=\"background-colo... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-19-2023, 01:21 PM |
|
|
Thread: Color a table cell based on specific text
Post: Color a table cell based on specific text
Hi Team,
Am trying to find syntax for html.replace to replace color of the td with specific text, for eg: If text A, color Green, if text B, color Red.
I tried like below but, it doesn't seem to wor... |
|
Creepy |
General Coding Help |
11 |
1,993 |
Jul-19-2023, 11:51 AM |
|
|
Thread: Convert dataframe from str back to datafarme
Post: Convert dataframe from str back to datafarme
Hi,
Am looking for help where I converted a dataframe in order for replace function to work?
Now am looking for way to convert it back to datafame ( post the replace) for further processing.
df = st... |
|
Creepy |
General Coding Help |
1 |
634 |
Jul-07-2023, 01:05 PM |
|
|
Thread: qpython package error
Post: RE: qpython package error
(Jul-06-2023, 03:37 PM)deanhystad Wrote: I don't even know where you could find something that old. The oldest I could find was 1.2.5 released in 2016.
I managed to get it, in pyPi site under 'Rele... |
|
Creepy |
General Coding Help |
5 |
1,141 |
Jul-06-2023, 05:58 PM |
|
|
Thread: qpython package error
Post: RE: qpython package error
(Jul-06-2023, 02:47 PM)snippsat Wrote: qPython
Quote:To future readers, this project is not being actively maintained. The Fintech Open Source Foundation has forked it and is actively maintaining: h... |
|
Creepy |
General Coding Help |
5 |
1,141 |
Jul-06-2023, 05:57 PM |
|
|
Thread: qpython package error
Post: qpython package error
Hi,
Could you help me resolve the issue with package?
Re-installed a number of times, but still the same issue.
When I run my code, I get the below error:
qpython/qconnection.py", line 21
from ... |
|
Creepy |
General Coding Help |
5 |
1,141 |
Jul-06-2023, 02:18 PM |
|
|
Thread: is there a way to mention port range or search for port dynamically with qConnection
Post: is there a way to mention port range or search for...
Hi,
Current connection I have
qconnection.Qconnection(host='xyz',port=5000,username=usr,password=pwd)Looks like port keeps changing everyday, is there a way to mention port range or search port dyna... |
|
Creepy |
General Coding Help |
0 |
1,487 |
Sep-09-2021, 03:15 PM |
|
|
Thread: remove b due to conversion in PyQ
Post: RE: remove b due to conversion in PyQ
Thanks, tried as suggested, now when I print the output:
print(df[col])It now displays only int, which is Col4 along with index:
0 0
1 0
2 0
3 0
4 0
Col 1 to 3 are missing on my CSV, not very sure w... |
|
Creepy |
Data Science |
9 |
5,673 |
Jul-21-2021, 05:57 PM |
|
|
Thread: remove b due to conversion in PyQ
Post: RE: remove b due to conversion in PyQ
This is my Qtable/Qlist info on datatypes:
Data columns (total 5 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Col1 5 non-null object... |
|
Creepy |
Data Science |
9 |
5,673 |
Jul-20-2021, 06:54 PM |
|
|
Thread: remove b due to conversion in PyQ
Post: RE: remove b due to conversion in PyQ
I see the problem here, I was getting AttibuteError: recarray has no attribute decode.
My output var is a list of numpy arrays, just to drill down the specific problem, I tried
x = b'thef45th'
print... |
|
Creepy |
Data Science |
9 |
5,673 |
Jul-16-2021, 07:19 PM |
|
|
Thread: remove b due to conversion in PyQ
Post: RE: remove b due to conversion in PyQ
The col where am extracting the output from looks to be a byte string.
In other words, when I just output only that col, I can see the output as below:
[b'234xyz678kkkkkk']
All I want to do i... |
|
Creepy |
Data Science |
9 |
5,673 |
Jul-16-2021, 04:57 PM |
|
|
Thread: remove b due to conversion in PyQ
Post: remove b due to conversion in PyQ
Hi Team,
Am trying to get rid of the b that appears in the column?
Data type of my output:
df.info()Output:Date: Dtype: object
Col 2: Dtype: object
Col 3: Dtype: object
Col 4: Dtype: int16I want to ... |
|
Creepy |
Data Science |
9 |
5,673 |
Jul-15-2021, 08:14 PM |