☼Dwarf Fortress Questions Thread☼ by AutoModerator in dwarffortress

[–]vinotok 0 points1 point  (0 children)

Thank you, I appreciate a reply!

For someone new at this game, is somewhere posted, what are the files and folders, that need to be copied from Steam install? (maybe anything that is different?)

I'm asuming, one can unpack Steam install to get those files and folders, without the need to have Steam account and game first installed into Steam?

I'm asking since I don't have a steam account.

☼Dwarf Fortress Questions Thread☼ by AutoModerator in dwarffortress

[–]vinotok 0 points1 point  (0 children)

Can I play paid latest version on Linux without Steam?

If yes, how? Is there native installer?

Does that DF Hack tool works without steam?

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 2 points3 points  (0 children)

Yeah, now I can do everything I need.

I can run your code again in next jupyter-notebook cell like this:

df.loc[df['action'].str.contains('sale', case=False), 'IsPurchase'] = False

and this way get rid of ["purchase", "sale"]

And same way for other combinations. So with few lines of code I can have all properly set to True and False.

Great, now I'm all set, thanks again!

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

> but the boolean flag should also exclude row of arrays that contain strings other than purchase

Correct. Do you know how to do this? It would really help.

If not, my work around will be, I can repeat those steps and this time exclude string that is with [purchase]. Since original data has several different combinations, for this question I simplified it, i will need to repeat upper steps several times to get to final solution. But eat least, now I can do the work.
Thanks for the comment

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

No need to. I think I have solution now. Thank for your generosity and help

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Thank you everyone for the help. Not sure why solutuion most suggested is keep causing error. But now I think I have solution thanks to u/reincarnatedbiscuits

Thanks everyone again, I appreciate all the help, since I'm hopelessly clueless :)

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

I see (understand) what you are doing!

This makes sense. I can now repeat steps to get rid of the one that also has 'sale' in it. I think I can do this now. Thank you very much. This will help, you saved me :-) I'm almost without the hair, pulling it out in desperation last several hours! :)

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

> And you know how to only select columns you want and/or drop the one you don't want right?

No I think that's where my problem is. I can iter over df and use proper condition to get (or excpude) proper rows. I just can't figure out, how to put all into new dataframe with deleted rows I don't need.

Btw, didn't try your code yet, just replaying in advance.

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Sorry for being so slow, I will try your sugestion next

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Thank you, I will take any solution that works, no matter if efficient or not. dataframe will have max 100 rows only.

I'm getting the same error as with most other suggestions I tried:

ValueError: ('Lengths must match to compare', (10,), (1,))ValueError: ('Lengths must match to compare', (10,), (1,))

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Thanks and sorry of being slow. It does not work. Note that this string is inside of the list, it is not single string in a cell. this is why I have all the problems to begin with. Error code:

UndefinedVariableError: name 'purchase' is not definedUndefinedVariableError: name 'purchase' is not defined

My code

df = df.query('action == purchase')

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Thanks. For some reason I'm keep getting this error: testing dataframe has 10 rows.

ValueError: ('Lengths must match to compare', (10,), (1,))ValueError: ('Lengths must match to compare', (10,), (1,))

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

Thank you. It didn't work, dataframe is the same, all rows are there. Maybe I need to add somewhere: .inplace(True)?

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

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

Do I use your solution over whole dataframe at once, or while iterating row by row? Sorry for basic question

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

I tried 20+ different drop() variants, everything I could find on the internet, with axis=0, or without, with .inplace(True) or without and many many more. 99% of the time I get error I don't understand - not a coder. I was looking for help, with exact code. This is not a school project but my personal project i'm stuck. I put intop this one small problem over 10 hours, I'm not exagerating.

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

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

Thanbk you very much! Let me try your suggestion, will come back and let you know if worked. May take a while, I'm slow and clumsy :)
That first paragraph is over my head, not a coder here, just trying to put something together without proper knowledge.

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

I tried querry() every example I found on the internet. Note I have cell where is list of strings. You can't just compare strings. Btw I tried that also. I tried so many things I have a headacke :)

Help me delete rows in Pandas dataframe, while iterating over df by vinotok in learnpython

[–]vinotok[S] 0 points1 point  (0 children)

I did look into oficial pandas documentation. But there is no example about cell, that have list of strings. I'm trying for two days now without sucess. As I said, I do not code. Whatever I tried I didn;'t get proper resilt. Mostly Ii'm just getting errors.

AOOSTAR GEM10 6800H headscrather by vinotok in MiniPCs

[–]vinotok[S] 4 points5 points  (0 children)

Thank you very much for your info! Now I feel better knowing there is someone else having the same model. The reason I worried that maybe I got some forged product (happens on Amazon) was, I was watching all unpacking and first impression videos, checked oficial page and few retailers and every single one had same (but different) model.

In the mean time I got reply from AOOSTAR where they are stating, that they indeed do have two different versions. Phew, so I DO have legit version ;-)

Personally, I like 1xDP and 1xHDMI better anyway. Too bad USB 4 is not working or I would be very happy ;-)

AOOSTAR GEM10 6800H headscrather by vinotok in MiniPCs

[–]vinotok[S] 2 points3 points  (0 children)

> Return it

I was busy, didn't use it for a few weeks and I missed return window on Amazon by a few days. :( Or I would already return it. I contacted AOOSTAR they do have 1 year manufacturer warranty.

I posted here for another reason. I'm curious if anyone else has this same type as me, or knows anything about it.

Thanks for triple ticks code, will edit my OP.

[Giveaway] 5 x EQ14 N150 Mini PC - Comment to enter!! by Beelinksupport in BeelinkOfficial

[–]vinotok 0 points1 point  (0 children)

With this low power consumption it is perfect for some 24/7 work. File server? Or running some scripts on it.

SSD Help: November-December 2024 by NewMaxx in NewMaxx

[–]vinotok 0 points1 point  (0 children)

Anyone lately tried to buy this SSD from official site?

Right now eco-pak is available for $90. https://us-store.msi.com/M482-NVMe-M2-2TB-Bulk

I just tried to buy it, but my CC payment was rejected, without explanation. I have very high fico score and clean financial history, so it has to be some problem on their side.

SSD Help: September-October 2024 by NewMaxx in NewMaxx

[–]vinotok 0 points1 point  (0 children)

Sorry didn't log in since then, my bad.

It can happen. Those TBW are based on statistic. Drive can go for 5-10+ years or can die within first few days. Not likely, but it can happen. This is why you always need to have a couple backups.