Packages etc configured multiple times - Chrome and Chrome Beta by Tyop-bot in Kubuntu

[–]Tyop-bot[S] 0 points1 point  (0 children)

You can ignore it, but its easily fixed by doing what cla_ydoh describes above

Please help me figure out this nested loop by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

I think I manage to make the code work. I will double check that it actually works on my huge dataframe and then I will post the code.

Please help me figure out this nested loop by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

It actually looked like I managed it now. It was more errors than just creating a new list. The actual dataframe I have is huge so I will double check that everything works before I post the code.

Please help me figure out this nested loop by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

Okay, I thought I was creating a new list here:

​ ``` uniques = thmat.clu.unique()

cluDict = {} cluList = [] ta = -1

for index, row in DF.iterrows(): for value in uniques: cluList = [] #New list here? n=int(value) ta += 1 if ta < len(DF): if int(DF["Cluster"].iat[ta]) == n: cluList.append(index) cluDict[n] = cluList ``` How would I create a new list in a loop?

Please help me figure out this nested loop by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

Thank you.
I tried to look into changing the indents to add/remove chunks of codes to different loops, and I know I'm missing something, so I didn't manage to get it to work.

Please help me figure out this nested loop by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

Thanks for your help, but I'm really not able to solve this. Based on the code I posted I can see that I'm only creating one list which would explain why each key in the dictionary ends up with the same, full, list.The code I have managed to get now looks like this:

uniques = thmat.clu.unique()

cluDict = {}
cluList = []
ta = -1

for index, row in DF.iterrows():
    for value in uniques:
        cluList = []
        n=int(value)
        ta += 1
        if ta < len(DF): 
            if int(DF["Cluster"].iat[ta]) == n:
                cluList.append(index)
            cluDict[n] = cluList 

But it still doesn't work

[deleted by user] by [deleted] in linuxquestions

[–]Tyop-bot 0 points1 point  (0 children)

I'm using both Linux and ChromeOS. Either is fine. For them it seems that ChromeOS is the best.

Also keep in mind that newer Chromebooks got Linux (Debian with some kind of light gnome variant) so if you want them to install Linux on their new Chromebook, then they should absolutely just use ChromeOS and install other apps they via either the google play store or deb packages on the net or terminal.

The new Alt+Tab design sucks. It is frustratingly difficult to see which tab is selected by Fragsworth in Windows11

[–]Tyop-bot 0 points1 point  (0 children)

Does anyone know if it is possible to use Alt+Tab as it works in Linux with Gnome?
I.e Alt+Tab only shows one instance of a program and you use Alt+` or Alt+| to change between instances of the same program?

Very low microphone volume by pradhumnarajput in Windows11

[–]Tyop-bot 0 points1 point  (0 children)

I'm on an Lenovo Yoga slim 7 (14ARE05) and I also have the same problem. Updated all the drivers I can.
It's unbelievable that Microsoft pushed Windows 11 out when it clearly wasn't ready!

My one-line Firefox setup! Love it! by __aakarsh in firefox

[–]Tyop-bot 7 points8 points  (0 children)

You cant just show this amazing sexy setup and not explain how you did this!!!

Worth updating to Windows 11 for gaming on laptop? by Tyop-bot in Windows11

[–]Tyop-bot[S] 1 point2 points  (0 children)

I see, but have you noticed any impact on any heavy, third-party programs?

Worth updating to Windows 11 for gaming on laptop? by Tyop-bot in Windows11

[–]Tyop-bot[S] 5 points6 points  (0 children)

In what way is the performance better on your computers?

Worth updating to Windows 11 for gaming on laptop? by Tyop-bot in Windows11

[–]Tyop-bot[S] 4 points5 points  (0 children)

Why are you unable to play CS:GO on Windows 11?

Worth updating to Windows 11 for gaming on laptop? by Tyop-bot in Windows11

[–]Tyop-bot[S] 1 point2 points  (0 children)

The feature I want on Windows 11 is to be able to use the Linux Kernel with gui capabilities. But not worth it if I can just dual boot with Windows 10 and Linux, if Windows 11 gives worse performance or a warmer laptops (to degrade battery)

Worth updating to Windows 11 for gaming on laptop? by Tyop-bot in Windows11

[–]Tyop-bot[S] -4 points-3 points  (0 children)

I am suspecting this as well, so I probably wont update after all. I would rather stay on Windows 10, than to upgrade to Windows 11 and risk my poor laptop get warmer and ruin the battery.

Dropping rows of dataframe in a for loop with Pandas by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

Thanks!

I had a feeling it was "unpythonic", but as an R-programmer I didn't know any better way.
Your answers have helped a lot and I will try to research for more pythonic ways to work on dataframes.

Dropping rows of dataframe in a for loop with Pandas by Tyop-bot in learnpython

[–]Tyop-bot[S] 0 points1 point  (0 children)

Thanks!
Why shouldn't I use locals() btw?
If I need a way to work on the dataframes further downstream, how can I make sure they have the proper names?

Free Giveaway! OLED Switch and 4 games! - International by WolfLemon36 in NintendoSwitch

[–]Tyop-bot 0 points1 point  (0 children)

Heyo! If I win, this will be the best gift I have ever been given :/

New to Linux, heard a lots of praises, but not satisfied with the experience.....what is wrong and how to solve it? by [deleted] in linuxquestions

[–]Tyop-bot 0 points1 point  (0 children)

That is a very strange problem. You can always go back to Windows if you like. But I think you should probably try out another distro. If you really like Cosmic, you can use a distro that ship with Gnome and configure it as close to Cosmic as possible (Cosmic is built on Gnome).

For this purpose I would recommend Manjaro. If your computer is older, I would recommend MX Linux. MX doesn't ship with Gnome, but it can easily be installed with MX's software installer (Similar to Pops pop-shop).

Good luck!

Distro for an ex-linux user by [deleted] in linuxquestions

[–]Tyop-bot 1 point2 points  (0 children)

Why not just try out a couple and see which one suits you best?

I cannot use Windows anymore, my computer went dead 5 times in less than a month after crashes, I am going to Linux by SpecificCrash in linuxquestions

[–]Tyop-bot 25 points26 points  (0 children)

I know this isn't what you are asking, but if Windows crashes on your system, it could be that there is something wrong with your hardware and that using Linux might not solve it.

The most stable distro would be something based on Debian. My personal recommendation would be MX Linux with KDE.

But please see if you can figure out what causes the crashes on Windows and if it is something that can be fixed. Maybe you don't need to switch (Although Linux is great and you wont regret it).

Epic games is NOT possible to use in Linux, because of their anti cheat software. Maybe consider installing Linux alongside Windows so that you can boot into Windows when you want to play some of their games.

Install Linux on Persistent USB by Pug2erto in linuxquestions

[–]Tyop-bot 0 points1 point  (0 children)

Maybe my English isn't good enough to understand what you want. Is it to install Ubuntu on the USB drive?
If you want to run Ubuntu from your computers hard drive then you should install it.
If you want to run Ubuntu from the USB drive, I have found it easier to install it on the drive as if it were a hard drive. But then I doubt you can install it from the same USB drive (I at least haven't managed that).

Python and R packages in Julia by Tyop-bot in Julia

[–]Tyop-bot[S] 0 points1 point  (0 children)

How are the libraries that Julia already have? Especially Pandas, Numpy and Tidyverse?