Qwyrdo, Geometer (& β)

313 Followers
277 Following
24.1K Posts

Qwyrdo: Queer trans nonbinary multiple Autistic Buddhist/Pagan witch. Nerd extraordinaire. Early musician and calligrapher. Cat. Ze/zer or they/them. Probably older than you. I post a lot about living with depression and ASD but occasionally go on about one or more of my special interests.

β: I am a subsystem of Qwyrdo. I am robotic in nature. I help Qwyrdo process their experiences. Pronouns are it/its.

Unmarked posts are by default Qwyrdo. If a post is unlisted or public, it is OK to boost!

Art Account@Qwyrdo

Could people please:

A) CW their posts about politics, even vague ones about the intersection of politics and social media? It would help me (and almost certainly others) engage with those posts in a way that maintains my mental health.

B) Reconsider boosting un-CWd posts about the same. Same reasons apply.

Both would be greatly appreciated. Thank you.

Sophie Jane's daily Tarot draws remind me: I am out of practice with my deck. I've fallen out of reading from it daily.

I rationalize it as "I'm just too busy," but in the moment I can call a spade a spade: it's simply rationalization. Excusing myself with a surface-level reason.

Maybe if I treat it as what it is--namely, a form of daily guided meditation that is brief and takes maybe 5-10 minutes in total--I can get back in touch with my deck and re-build what for me is ultimately a healthy practice?

Those are my current thoughts. Posting publicly in order to share them, in case they help anyone else who wants to develop or maintain a relationship with their Tarot deck(s) and build a daily practice therewith.

I'm an Autistic individual with white privilege recovering from a major injury that has prevented me working my usual retail gig.

Urgent funding needed for groceries ($130) since there seems to be a snafu with my benefits that I probably won't be able to sort out until Wednesday at the earliest.

Also urgent: $80 for past due phone, which is my sole connectivity at the moment, and $20 for a bus pass so I can go renew my state ID (needed for student employment).

Full disclosure: I'm waiting on GoFundMe to release some generous support but I don't know what's taking them so long, and these needs are pressing. Nominally employed now but I can barely walk after working a 4 and a half hour shift and needed to call in sick because of that and other physical issues.

Please give to a Black, Indigenous, or otherwise racially marginalized person first.

https://ko-fi.com/qwyrdo

Thank you.

 #TransCrowdFund #MutualAid @mutualaid

Buy Qwyrdo a Coffee

Become a supporter of Qwyrdo today!

Ko-fi

I tried using a

with open('file.csv', 'r') as fi

clause, but couldn't get anything but strings out of it.

At someone's suggestion I installed pandas, but it was balking at... I honestly forget, now. I've tried so many ways of data wrangling, all to no avail.

I've tried manually formatting the .csv as a .txt file and opening that with the json module, but I'm not versed in the intricacies of that data paradigm and might be getting it wrong.

In short, I--a novice programmer faced with a surprisingly hard problem--can't figure this out.

Guidance on:

- reformatting my data to play well with some module or feature of Python;

- implementing some module or feature of Python to get the data into the format I need

would be extremely helpful.

I learn best by example, e.g. pseudo-code.

And please keep in mind, at heart I'm an artist trying to incorporate some data processing into my work. Coding is not my forte.

Thank you for reading.

Going to reframe this a little, as there are a few elements in play that I think are muddying the waters, both for me and those trying to help.

I have a LibreOffice .ods with two columns.

Column 1 has data like

'A', 'B', 'C'

Column 2 has data like

[['a', 'b', 'c'], ['d', 'e']], [['f']], [['g', 'h'], 'ijk'] ...

I want to build a dictionary out of this file.

LibreOffice can export .csv or Excel 2007 .xlsx

I could manually rearrange the data in a .txt file if need be, but cramming it all into one line would be impractical.

In Python, I need column 1 formatted as a tuple so elements in it can be matched with

for Key, Value in dictionary.items():
if Root[-1] not in Key:
continue
(do further processing if the key matches)

For that "further processing" I need nested lists for my code to work, because I'm building strings based on the product of the first level of lists.

#Coding #Help  

(continued as unlisted)

Now at $1350 of $4700 for back rent. Thank you so much for your support--both financially and socially!

Have an informal offer to return to my old retail job. I doubt I can handle the physical requirements (standing for long periods of time) but I'm desperate. A job is needed to unlock emergency funds from the county and other agencies.

Barriers to student employment have come up though, namely in being able to *prove* eligibility for work in the U. S. Working on getting a replacement social security card. Will need to renew my state ID. Both of those could take a couple weeks.

Family "might" consider a loan to help, if I can either prove I've got a job or prove I can't work.

Meanwhile, please continue to boost these updates and consider boosting them onto other social media platforms. It would be a big help.

As always, please support a Black, Indigenous, or otherwise racially marginalized person first.

https://gofund.me/4ed7f68d

@mutualaid #TransCrowdFund

I've gotten good suggestions so far, but seem to only be exchanging one problem for another and am approaching my wits' end.

Someone suggested using JSON as a data format and using the json module to parse it (along with some code to do just that).

But upon calling json.loads() I'm getting an error complaining that there's no ':' delimiter... where there actually is one!

Data set currently looks like this, without the line breaks and spacing (added here to make the structure more clear):

{
"'A', 'B', 'C', 'D'" :
[[["a", "b", "c"], ["d", "e"], ["f", "g", "h"]], [["i"]], [["jkl"]]]
}

(... plus another similar entry)

I am really confused!

If you choose to help--which would be very much appreciated--please keep in mind that I'm at best a novice programmer. I learn best by example (e.g. code or pseudo-code).

 #Coding #Help

Looking for some help creating a dictionary in Python from a CSV.

E.g. going from

"'A', 'B', 'C', 'D'", "[['a', 'b', 'c'], ['d', 'e'], ['f', 'g', 'h']], [['i']], [['jkl']]"

"'E', 'F', 'G'"," [['m']], [['n', 'o']], [['p', 'q'], ['r', 's'], ['t', 'u', 'v']]"

to

{('A', 'B', 'C', ' D') : [['a', 'b', 'c'], ['d', 'e'], ['f', 'g', 'h']] ...,

('E', 'F', 'G') : [['m']], ... }

I can open the file and do a .readlines pass on it fine.

I can strip the line feeds inherent in a CSV using .replace

But I can't figure out how to get the first item of each line of the CSV into a tuple and the second into a list. Just about everything I've tried seems to convert the parts into strings, which I can't figure out how to un-convert.

Any ideas?

Keep in mind I am at best a novice programmer. I've looked at e.g. https://www.geeksforgeeks.org/python-convert-a-list-to-dictionary/ and not been able to figure out how to get from their examples to what I need for this particular project.

#Coding #Help

Python | Convert a list to dictionary - GeeksforGeeks

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

GeeksforGeeks

I'm now at $870 of about $4700 for rent (not counting this month). I'm beyond grateful for that help 💖

Property manager is asking for further updates and for a long-term plan to keep me current on rent going forward. I did tell him I'll have some financial aid overage coming in later this month and student employment; he wants details, which I can't get until Tuesday at the earliest.

I do have siblings but I doubt they'll be able or willing to help, as they're basically all retired and live far out of town. But I've at least draughted an email to them asking for help promoting my GoFundMe and asking around for places to couch surf in the likelihood I need to move out.

Meanwhile, please continue to boost these updates and consider boosting them onto other social media platforms. It would be a big help.

As always, please support a Black, Indigenous, or otherwise racially marginalized person first.

https://gofund.me/4ed7f68d

#TransCrowdFund #MutualAid

@mutualaid

*Still* persisting at the problem of trying to turn something like this:

[
[
['A', 'B'],
'cde',
['F', 'G', 'H']
],
['i']
]

into

AcdeF
BcdeF
AcdeG
BcdeG
AcdeH
BcdeH
i

I'm dynamically creating a list of indices, e.g. Indices[[0,0],[0,0],[0,0]] to increment each position as we iterate through the problem.

But I'm running into unusual behavior when trying to update specific parts of this index list! Namely for example

SomeLength = 2
Indices[Position][1] = SomeLength

yields

Indices[[0,2][0,2][0,2]

instead of what I'd expect, namely

Indices[[0,2],[0,0],[0,0]

I am at a loss and need further #Coding #Help please...

Sample code is at: https://codeshare.io/LwBR1V