css – Text Center inside box HELP beginner

I got a problem im trading to figure our for hours now and im going crazy.

I want the text next to the icon be in the middle of the box. But I cant figure out what i have done wrong, could you also critique my code Im learning.

my CSS

#newaltcoins .boximg {
    background-color: #cccccc;
    width: 50px;
    height: 50px;


#newaltcoins .box{
    border:#cccccc solid 1px;
    color: black;
    width: 200px;
    height: 50px;
    margin: 5px;
    background-color: #EEEEEE;
    text-align: center;

My html

        <a href="">
            <div class="box">  
                    <div class="boximg" >
                           <img src="">


لینک منبع

python – Adding a New Column in a DF based on muiltiple conditions (Beginner)

I currently have a data based e.g. below:

Link To Table

I would like to add a new column, to the right of “Equity” called “Exposure”. If the Quantity >=0 then “Exposure” = df[Equity] – df[market value].
if the Quantity <0 then “Exposure” = df[Equity] – (-1*df[Market Value])

Please help. Thank you.

لینک منبع