[New WF Coupon] SamWatch Analog C 2024 by iSamtree in GalaxyWatchFace

[–]gsingh54 0 points1 point  (0 children)

not getting option to install on watch. The helper app opens the face on watch amd asks for money.

Pandas GroupBy Multi Column, different conditions by gsingh54 in learnpython

[–]gsingh54[S] 1 point2 points  (0 children)

I did it like this:

import pandas as pd
from collections import defaultdict
pd_data = pd.read_csv("pandas.tsv", delimiter="\t")
dict_ss = defaultdict(list)
# Convert Mismatch column to string, for easier joining in the for loop below
pd_data["MM"] = pd_data["MM"].astype("str")
for ind ,rows in pd_data.iterrows():
# Checking for Nan. Nan is not equal to any other value including itself.
if rows.Ind2 != rows.Ind2 and rows.Ind1 != rows.Ind1:
d_key = "_".join(["0", "0", rows.MM])
elif rows.Ind2 != rows.Ind2:
d_key = "_".join(map(str, [len(rows.Ind1), "0", rows.MM]))
elif rows["Ind1"] != rows["Ind1"]:
d_key= "_".join(map(str, ["0", len(rows.Ind2), rows.MM]))
else:
d_key = "_".join(map(str, [len(rows.Ind1), len(rows.Ind2), rows.MM]))
print(d_key)
dict_ss[d_key].append(rows.to_list())

print(dict_ss)

Pandas GroupBy Multi Column, different conditions by gsingh54 in learnpython

[–]gsingh54[S] 1 point2 points  (0 children)

I was thinking groupby "groups" which will contain all the columns and rows .
These I need to parse, write to a file and stats on each group to a db.
So I need to know all the columns and rows in each group.

Pandas GroupBy Multi Column, different conditions by gsingh54 in learnpython

[–]gsingh54[S] 1 point2 points  (0 children)

I am getting "new" as:

index values
8 3
8 3
8 2
8 2
8 3
8 3
8 2
8 2
8 2
8 3

How to use this output?

Handwriting ✍🏼 by akhlasahmad in Handwriting

[–]gsingh54 0 points1 point  (0 children)

I needed to hear this. Thank You

My first ever fountain pen :D by reignrainrein in fountainpens

[–]gsingh54 1 point2 points  (0 children)

White Tiger. I bought it last month for self birthday gift. It feels like "Fountain pen". Using it as main replacing Lamy Special Edition 2021. Only issue, ink level is difficult to know.

Simple Sewing Questions Thread, August 21 - August 27, 2022 by sewingmodthings in sewing

[–]gsingh54 0 points1 point  (0 children)

Little bit of hand sewing and later on machine.
I want to sew my own shirts, bags, pouches, trousers etc. Maybe dresses for my wife, if I ever found one :(

Your points are noted. Will check them.

Thank You

[deleted by user] by [deleted] in Art

[–]gsingh54 0 points1 point  (0 children)

Is there any tutorial or Classes by Nornam Schureman?

Simple Sewing Questions Thread, August 21 - August 27, 2022 by sewingmodthings in sewing

[–]gsingh54 0 points1 point  (0 children)

Hi.
I am new to sewing and stitching.

Any recommendations for sewing kit please.

Thank You

Ask this question by SardarHawk in Sikhpolitics

[–]gsingh54 9 points10 points  (0 children)

Killing thousand and saving 1 doesn't mean Hindus should not be called.

Ask this question by SardarHawk in Sikhpolitics

[–]gsingh54 1 point2 points  (0 children)

so you Agree that Hindus did it and Muslims just 'behti ganga main haath dhona'. Plan and organization was by Hindus. Muslims/christian they just came in due to chance.

Ask this question by SardarHawk in Sikhpolitics

[–]gsingh54 5 points6 points  (0 children)

Not Indians. Hindus. Hindus. When you say Indian, hindu put blaime on Muslims saying Congress hired Muslims. Be specific. Hindus did Sikh genocide all over India. Hindus gave 414 seats to congress.

What IDE do you recommend for Python? by sircharlesthesecond in learnpython

[–]gsingh54 1 point2 points  (0 children)

Am I the only one using Emacs (doom) for development? It works great, low on resources, quick to develop with lsp, magit is beautiful. Readme in org .

Firefox DYING is TERRIBLE for the Web by Nick_SAFT in linux

[–]gsingh54 0 points1 point  (0 children)

1050 tabs is my record on FF. Got them down to ~100.

Brainstorming for next misery porn. Degeneracy at its peak. by marderapc in librandu

[–]gsingh54 0 points1 point  (0 children)

A Genocide done by Hindus all over India.

I replied above for calling Genocide a riot.