« first day (2502 days earlier)      last day (2449 days later) » 

6:00 PM
@Rawing Thanks, I'll use that.
 
Can anyone point me to the right resource to achieve the following? In the following picture, I'd like to be able to detect all protrusions from an irregular shape (i've circled it in red). I'm having a really hard time doing this and a good start would be really helpful.
 
"image processing" and "image recognition" come to mind
 
I thought of overlaying circles at every curvature
and then looking at non overlapping circles and using them as protrusion.
but that was just a mess as these shapes are so irregular.
 
on a more serious note: did you segment your blobs first?
 
what do you mean by "segment??"
 
6:06 PM
as in "image segmentation"
if that's unfamiliar to you, you should probably take a step back and read about image processing in general
 
@Jonathan honnestly that s a tricky task for image processing only I think. I d go for a Support Vector Machine
your shapes are very irregular...
@AndrasDeak that s not image segmentation
Unless I misunderstood you,
image segmentation is simply segmenting a part of an image using eg a binary mask
or performing a logic AND operation or however you want to look at it...
 
image segmentation is the process of cutting up an image to multiple smaller parts, typically with the objective of identifying objects in the image
 
right, that is the defintion of segmentation,
 
if you're looking for protrusions on blobs, I'd think that you first need to find the blobs, and then see if any of them have protrusions
 
but there are particular categories no?
for instance, color, size, texture, etc.
 
6:11 PM
there probably are
 
I've very easily found the blobs.
I just took the histograms of the image.
and then
 
okay?
 
@Jonathan SVM's can be used for more than one category. Depending on how familiar you are with machine learning...
 
@Jonathan I don't have to know, really
 
6:12 PM
lol, ok
 
my point was that this is hard and you should have a very good understanding of your own before trying to go further
 
you're right, but yes, I do think i have a good understanding of my own. thanks though!
and i am familiar with ML.
 
you see, I see a bunch of questions in where someone posts an image like that and two sentences about "I need to find the nubs on the blobs, how do I do that with matlab?"
So I'm being cautious here
 
Oh no, i totally understand.
ANd @LandonZeKepitelOfGreytBritn are you suggesting
some type of feature maps?
 
OK, otherwise go ahead:) I won't be able to help, but others might
 
6:14 PM
In machine learning, support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis. Given a set of training examples, each marked as belonging to one or the other of two categories, an SVM training algorithm builds a model that assigns new examples to one category or the other, making it a non-probabilistic binary linear classifier (although methods such as Platt scaling exist to use SVM in a probabilistic classification setting). An SVM model is a representation of...
I ve already done something similar to what you are trying to do, I used SVM's
 
Right, that's what I was looking at as well. I was ucsd SVMs with tensor flow
 
@Jonathan have you tried it yet?
 
The thing is, if i'm building feature maps, usually the model
develops it on it's own.
I'd need a large data set.
unless I can very accurately define the feature maps before hand.
which in this case, is not so simple? I mean,
 
:38790044: he just wants to get every digit of a large number, what is not clear? He just didn't explain what he was planning to do with those digits...
 
6:16 PM
@Jonathan can you somehow measure convexity?
 
i can't give an exact size, angle deviation, etc, to characterize these protrusions.
HMm, perhaps.
 
most of your blobs are convex or just barely concave, but protrusions are very concave
 
True, very true.
 
hmm, let me look into it and get back! thanks
 
6:17 PM
good luck:)
and on a much larger-picture note, make sure you account for protrusions that are not visible (because they are before/behind the cell)
but that's not image processing, that's just generic science/statistics
 
dude you're not supposed to post those images jonathan
if they are what I think they are i.e. closed source medical data
 
Okay... seems we've a new homework assignment guys
0
Q: Why is it Storing the string value?

Arunoda Gunawardana AdeeHere is my program. I have included Try/ Except codes to validate each an every input. But when I input a wrong input it gives the correct answer but then it gives an error. I want to know why that error is coming? Given below is the code. If the inputs are correct it runs properly but if the inp...

I made the mistake of answering one earlier...
0
A: Exiting individual if elif statements

Jon ClementsWhen doing question[0] and question[1] you're accessing the character at that position in the text of the question (eg: E and then n and so forth) - a non empty string always equates to True so that's why all your ifs are running. A more elegant way of doing this is to pair up the questions and...

Still the same question (although a completely different attempt at it) though (ie: not a dupe as such)
 
@OneRaynyDay he probably won't see that without a ping
 
@OneRaynyDay what are you referring to?
 
the cells
 
6:32 PM
my bad, forgot to ping @Jonathan
 
hardly PII
 
Slippery slope is all I'm sayin
Someone in my old lab got in some serious trouble by posting a stack overflow post w/ a picture of a dude's blood vessel x-ray
and it was "hardly PII" too :P
 
nice...
 
it just happens that he was SOing for the answer for the exact question he was researching for
so maybe it's harder to get caught if it was a very tangential question, idk
 
@OneRaynyDay Hey, thanks for the warning!
And no, I'm working with published material,
all of this has been released on Nature.
In any case, I'll be more careful next time.
 
6:36 PM
Nature might argue that the picture has their copyright, but that's a different matter
 
hmm, true.
 
and one I frankly don't care much for:P
 
Is it posisble to remove it now?
 
ya :) also how many datapoints do you have? There's no "good" model it depends on how much assumptions you can make and how much data you have :P
 
in principle you can contact SO company for them to remove the images from the stack imgur account
dunno if that actually works and if yes, how fast
it helps that it was only linked in chat, not on main, I guess
(but as I said, I'm not personally bothered)
 
6:38 PM
@wim Thanks!
 
They have thousands of images as part of the supplement.
But I could only get my hands on two.
 
if you want to get it removed you'll also have to modflag at least one of them and ask the mods nicely to delete it from the transcript...
 
I see.
 
or just ask Jon :P
 
If you only have two images, support vectors won't do anything for ya
 
6:40 PM
Ye, but Andras mentioned a good point about looking for convexity. So I'm going to fool around with that.
 
Okay - deleted
 
@JonClements Thanks so much!
 
the images are still on the stack imgur profile, so if you're serious you should contact the company
you can probably see the URLs in the history of the deleted messages, since you're the poster
 
only ROs of the room or mods can do that
 
not the poster?
that sucks
thanks for the info
 
6:42 PM
try deleting your last message
see if you can see it - you probably can - but as it scrolls off the screen, you won't see it in the transcript
 
I can view the history
can you mod-delete that please^ ? for science
 
I see, so @JonClements , is there anything I should do it completely delete it?
 
now go down to chat.stackoverflow.com/transcript/6 @AndrasDeak
 
@JonClements that I know about...
what I don't know is whether mod-deleted own messages have a visible history
 
@Jonathan you could contact SO about it, but you'd have to find some damning prove it should be removed...
@AndrasDeak they do
 
6:44 PM
ok, thanks, that's what I was talking about up there ^ :)
Because Jonathan would need the image URLs if he were to ask SO to delete the images.
 
@AndrasDeak however, if we know it must be gone from RO's eyes and transcript, we can purge message history
 
ah, neat!:)
 
one sec
 
noooo don't kill me
I believe you :P
*poof*
 
now - access the history of your chat message
 
6:46 PM
hahaha :D
that's great, thanks
 
I'm so confused, what's going on?
haha does deleting message history
 
Jon is explaining moderator interaction with posts to me
 
remove the image from histroy as well?
 
From chat history, yes. It's still on imgur
 
Status update on my gdm keyboard layout situation: I'm changing my password to "a"
 
6:47 PM
how do I find it on there?
 
@Jonathan actually it seems that the stack imgur images aren't simply accessible (unless scraping or something)
so you probably don't have to worry too much
@Rawing oh yeah, I found a few hints but no solution
there's this similar thread sans wayland, there is some information regarding login behaviour
 
I've added a 2nd keyboard layout and now it sometimes shows up at the login screen and lets me select the correct one
 
there's this which is with X but discusses some login behaviour with localectl which is also mentioned here
 
Ah okay @Jonathan. What's the argument behind not using a rulebased approach?
 
I assume this very obvious link is already done for you, and it doesn't affect the login screen
and there are some utils mentioned here
that's all I found
</end> @Rawing block
 
6:50 PM
Will look at all that stuff, thanks again
 
it's more likely to not be of any use, but that's all I could do :)
no worries
 
Anyone knows Django?
 
@OneRaynyDay it's a bit difficult to define the rules, at least for me.
I mean, the shapes are already very irregular and ellipsoidal. On top of that, these protrusions are obvious to the naked eye, but they're not so black and white to the computer.
 
I'm still stuck on convexity: you could measure the difference between the blob and its convex hull
the areas should be close
 
@Jonathan I think you already defined a rule: it's ellipsoidal
 
6:54 PM
For some reason when I do a Query Set it returns everything Ok.
 
depends on the size of protrusions you expect though
 
but it returns the names of the people and not the object by itself
TM = Transaction.objects.filter(reference="1503105834").exclude(customer="1")
returns everything Ok.
But returns this [<Transaction: nelmary andrea arias murillo>]
 
I used findCountours frmo cv2 to detect all the blobs and outline them.
so that works really well.
 
And when I try to access the object. like. TM.curstomer.first_name
TM.customer.avatar
it says it does not exists but its on the model.
 
But within each blog, detecting the protrusion is weird because some are really slight.
some are very obvious.
Some protrude and touch a different blob.
and the way countours seem to work on cv2 is it looks for connected components.
 
6:56 PM
Any Ideas?
 
not sharp deviations on lines.
 
@Jonathan that's why I asked about segmentation. You first have to have a reliable set of blobs.
 
Right, I've already segmented the image.
I've a very reliable set of blobs no false positives/negatives
 
so...blobs touching is irrelevant, right?
because you're working with one blob at a time
 
well, it's veyr minor.
it happens rarely.
i'm just trying to make it work for the general case,
and then i'll take care of corner cases.
 
7:07 PM
@eddwinpaz is .avatar a foreign key that's nullable?
 
customer = models.ForeignKey(Customer)
No.
I get the result I need.. but I only get a reference not the whole object.
[<Transaction: nelmary andrea arias murillo>]
Just that.
I need to call Transaction.Customer.first_name
Transaction.Customer.avatar
 
@hope94 please look at sopython.com/wiki/…
 
@JonClements this... pastiebin.com/599c819b828a0
 
> you can’t mix plaintext and code in a multi-line message.
 
user8451312
7:12 PM
i know, but i cant edit it, so i must write new one, sorry
 
no worries
 
user8451312
def custom_tokenizer(text):
    #split- space
     tokens = ' '.join(post_text).split()
     tokens = [token for token in tokens if len(token)>=3]
#     stem tokens
     for i, token in enumerate(tokens):
         for key, val in d.items():
             if re.match(key, token):
                 tokens[i] = val
                 break

     return tokens

#create word vector
cv=CountVectorizer(tokenizer= custom_tokenizer,analyzer ='word',encoding='utf-8',\
                    stop_words=frozenset(dict), max_features=10)
 
Do you know where it hangs?
 
user8451312
Well, i think it's in last two lines. Because without them its ok
 
user8451312
First i was getting errors because tokens was a list of lists. And now is a flat list of words
 
7:23 PM
cbg
The duplicate helps with that problem, but I must admit I don't understand the model at all: your families really have 2 persons: "a person and a family person"? Or what is this supposed to mean? — Antti Haapala 26 secs ago
 
I would guess that the family_person_id is supposed to be the id of someone who the other person has a familial relationship with.
 
wim
any astronomers here?
 
... something something about stellar questions....
 
Yes, but I can't share such knowledge when mercury is in retrograde
 
I can only do such things when there's a syzygy occurring...
 
Geshundeit.
 
wim
after seeing the eclipse yesterday, I got curious about how the moon and the sun appear almost exactly the same size in the sky
that seems like a crazy astronomical coincidence
 
naa...
@wim proof of ID
 
user8451312
Omg, this code still runs.......
 
> What’s more, the moon is getting minutely farther from the Earth – by about 4 centimeters – every year. That means that, in past aeons, there were no annular eclipses. All eclipses were total eclipses because the moon in Earth’s sky always appeared bigger than the sun.
 
7:32 PM
Oh, really important-- if you looked right at the sun for even a split second, you should check to see if you've damaged your eyes: theguardian.com/science/2017/aug/21/solar-eclipse-eye-damage
 
@wim this always made me laugh: youtube.com/watch?v=vvmq66op0G8
 
@AnttiHaapala OTOH, aeons ago the Earth was spinning faster so the duration of totality tended to be shorter. So the dinosaurs may have had more total eclipses, but ours are better. ;)
 
oh great... now I'm listening to Mitchell's rants: youtube.com/watch?v=-6vLp07ZePY
 
What's the bet that this OP is running those scripts as independent programs. stackoverflow.com/questions/45824974/…
 
@PM2Ring but do we know whether the dinosaurs perceived the time at the same speed as we do?!
 
7:38 PM
Did dinosaurs perceive time at all?
 
When there are no humans to observe it, does time even pass?
cue "humans riding dinosaurs" alternative notions
 
@AnttiHaapala Fair point. If you measure the relative duration of totality compared to the day length, then the dinosaurs' eclipses were longer than ours because the apparent size of the Moon was bigger.
 
@PM2Ring actually, Earth's rotation doesn't affect totality time; Moon's orbit time does (which gets longer and longer too)
 
wim
@AnttiHaapala that doesn't answer the coincidence, if anything it reiterates the same thing:
why are we here at the time in history which makes the sun and the moon appear the same size
insane coincidences like this really gets on my nerves and upsets my worldview
 
meh
 
7:50 PM
@AndrasDeak Hmmm. I see where you're coming from, but I'll have to think about it. If I draw a line from the centre of the Sun to the centre of the Earth, then it's obvious that it's the Moon's orbital speed relative to that line which determines the duration of totality. But to compute eclipse tracks shouldn't we be drawing the line from the Sun to the surface of the Earth?
 
@wim if it weren't thus, you wouldn't question it
 
wim
anyway when I first heard that the moon rotates at the right speed to always show the same face to the earth it turns out this is caused by tidal lock. I was hoping there was some kind of similar explanation about the sun/moon coincidence
 
@wim surely not
@PM2Ring well, the shadow is the same size regardless of the rotational speed of the Earth. The latter only affects how quick a certain point on land crosses through the shadow, but my hunch is that the bottleneck on totality is the Moon moving out of center (I might be wrong)
 
wim
how you can be sure? maybe something we just don't understand yet
 
Ugh I bet you people think the world is round too
 
7:53 PM
@wim because "apparent size of Sun" is a pretty loosely relevant quantity when it comes to planetary dynamics. I'm not sure, just guessing
 
@wim Maybe the sun/moon size thing bewildered our proto-human ancestors so much that it was one of the triggers that promoted the evolution of human intelligence. ;)
 
we could have a different star with the same weight but different size
gravity would be the same
 
@AndrasDeak But surely the speed that a certain point on land crosses through the shadow is what determines the duration of totality?
 
wim
I was thinking more along the lines of, the moon and the sun coincidence can somehow be beneficial for the conditions in which life can arise
 
@PM2Ring as I said hinted, I'm pretty fuzzy on eclipse details. If the bottleneck is the land crossing, then yeah, Earth's rotation is what matters after all
@wim ah, that's more of an anthropic principle thing
that could be more likely but I still doubt it
this mostly seems to matter with eclipses, which are rare and evolutionarily insignificant events as I see it
 
wim
7:56 PM
with a sample size of 1 it's hard to argue either way
 
that's pretty much the catch-22 with the anthropic principle
 
@wim Life arose when the apparent size of the Moon was significantly larger, and the Earth's rotational period was significantly smaller than it is in the present epoch, and hence the number of days in the year was significantly greater, although the actual length of the year is rather stable.
 
I'm sure if the Sun wouldn't inflate and devour it earlier, Earth would also drift further from the Sun gradually ;)
 
wim
@PM2Ring how much larger is "significantly" larger?
 
@AndrasDeak I tend to agree that eclipses are too rare to have much evolutionary significance. OTOH, AFAIK, solar eclipses are considered inauspicious by all traditional religions. My guess is they scared the yam out of our ancestors, just like they tend to spook animals & birds these days.
 
8:00 PM
yup
 
@wim one of the myriad possible coincidences which only happens to be true now.
so you're wondering that and that why our eyes resemble those of a squid, and not "why we have 10 tentacles like them"
 
@wim There's some info here eg " 620 million years ago: the day was 21.9±0.4 hours, and there were 13.1±0.1 synodic months/year and 400±7 solar days/year."
 
wim
@PM2Ring that doesn't really answer it ...
today the visible size of the moon is approx 1.0 times the size of the sun
at the estimated time when life arose, the visible size of the moon was (1.0 + epsilon) times the size of the sun
what is epsilon?
 
The stupid React patents issue lumbers on
If this makes other corporate OSS contributors start doing the same I will be annoyed (also, OSS might be horribly damaged)
 
8:16 PM
?
 
wim
@AndrasDeak perhaps the tides behaving a certain way can be evolutionary important and that's somehow related to the coincidental geometry
 
All Facebook OSS comes with a patent rider that says if you or any company you have a share in (or a few other people) sue Facebook (or any company it has a share in) for any reason (e.g. they have a share in a fridge making company who are copycatting a fridge design someone you have a share in has a patent on) then your right to the patents involved in any of the FB OSS you use is revoked
 
@wim but apparent sizes don't affect the tide...do they?
 
tide <- gravity <- mass (rather than size)
as I said, of course anything's possible, I just don't find it likely
 
wim
8:19 PM
but orbital distance is related to the mass
 
wim
hmm, right it's not
 
but I'm barely more literate in the subject than a regular STEM-inclined person, so I can always be wrong
 
I thought it was mass and speed and distance
 
yup
 
8:20 PM
But then I haven't done physics for almost 20 years
 
wim
so you can change the apparent size of the moon in the sky without affecting the pattern of tidal activity?
there is a degree of freedom there, so to speak?
 
I'd think so...assuming the Moon is homogeneous at least
if it's inhomogeneous in a way that matters, then scaling it down (by increasing its density) will affect its rotational speed, and thus the inhomogenities will have a different rotational period
however if it can be thought of as homogeneous, then increasing the density will decrease its size for the same mass, but its gravitational pull will be the exact same outside a sphere enclosing it
 
wim
I don't know if the moon's homogeneous but I guess it's homogenized
 
you actually need sphericity for that as well, but that's close enough for the Moon
@wim :)
I can't type today
 
@wim Ok. So the Moon's apparent size _wasn't that much larger 620 million years ago, maybe 3.6% larger in apparent diameter and almost 7.4% larger in apparent area.
 
8:24 PM
Hmm...although messing with the density->size would probably affect rotational speed of the Moon, so the tidal locking might have gone differently
 
from math import atan2, degrees
# Radius of Moon. All distances in km
r = 1737
# Current Earth-Moon distance
d1 = 384400
# Distance Moon receded over 620E6 years,
#given mean recession rate of 21.7 mm / yr
dd = 21.7 * 620
# Earth-Moon distance  620E6 years ago
d0 = d1 - dd
#Compute Angular size of Moon
for d in (d1, d0):
    a = 2 * atan2(r, d)
    print(d, degrees(a) * 60)
##output
384400 31.06829083450455
370946.0 32.19510385236353
 
wim
@AndrasDeak Yes. I'm just beginning now to fathom the insane complexity of orbital mechanics
it's amazing that the approximations we make are good enough to predict the eclipse totality path and duration with such accuracy
 
nah, most of that is fluff
we're talking about really subtle effects right now, but those might matter on a cosmic/evolutionary scale
Kepler will probably tell you most of what you need for eclipses in the next few thousand years
 
wim
@PM2Ring I guess we could call epsilon 0.036 to be (borderline) significant
 
8:29 PM
Shall I use configparser to make a config file?
 
wim
@AndrasDeak right, let's go dig him up then
 
I'm in
 
wim
@EnderLook no. just use plaintext, something like yaml is popular these days.
configparser has the stench of windows .ini files on it
 
@wim stench?
Are you sure that it's called plaintext? I can't find it in the python documentation.
 
wim
stench like ... mal olor, hedor ..
 
8:34 PM
@wim Our Moon's orbit is particularly tricky because the Moon is so large relative to the Earth. Wikipedia has a nice introduction to Lunar Theory which mostly focuses on the history rather than the maths.
 
user8451312
How can i define a target variable in dataframe?
 
user8451312
How can i define a target variable in dataframe?
 
considering how this is....day 10? of you in python, have you read a pandas tutorial?
 
@hope94 Sorry, I don't know what is a dataframe...
 
Who flagged that?
 
8:36 PM
chat won't even let you post the same line twice; that's a connection problem
 
@vaultah Me! Is that bad?
 
@EnderLook yes, You'd be drawing the attention of both 10k users across the chat and moderators.
 
@EnderLook yes
 
Uh, sorry.
 
only flag what is "rude/offensive/spam", literally "spam/inappropriate/offensive" in the flag dialog
 
8:37 PM
@AndrasDeak That was spam
 
nope
 
Two times the same thing is spam, no?
 
@EnderLook think again
search meta for "spam"
 
user8451312
Its because connection, sorry, didnt know whats happening
 
@hope94 not an issue, happens everytime with bad connections.
 
wim
8:38 PM
offensive is subjective though
 
yes, but there's a reasonable understanding from most users :P
not if you go to JS or Lounge though...
 
wim
and rude is locale-dependent .. :)
 
waffles
 
wim
:D
 
8:39 PM
:|
 
@hope94 Sorry, I commit a mistake.
 
oh no, the popo is here
 
@EnderLook No. The term "spam" on Stack Exchange is very specific. It doesn't refer to simply repeating things. Spam is unsolicited commercial messages, especially scams that are trying to make money from people. Posting spam on SO is a very serious offence, so please don't use that term lightly.
 
@wim forgot about that
 
@wim Profanity?
@PM2Ring Ok, sorry.
 
8:41 PM
@EnderLook For details, please see meta.stackoverflow.com/questions/260638/…
 
wim
 
user8451312
I only found how to set target on pandas model frame, not on regular data frame type.
 
Also, if spam flags delete a message in chat, poster gets 30 minutes auto-suspension. If Spam flags delete a post on main, poster gets -100 rep
@hope94 what do you even mean by a "target variable"?
 
@AndrasDeak ohhh
 
rhubarb folks, goin to sleep. \o
 
8:42 PM
rbrb Bhargav o/
 
@EnderLook so don't hesitate to flag if something really is offensive (and not just profanity in general, but actually rude towards a specific user or specific people), but only then
@BhargavRao good night \o
 
user8451312
@AndrasDeak if i want to predict if weather is going to be nice, and i label it with true or false, the column with true and false is my target variable. Thats what i want to predict
 
Yeah, sorry, I don't understand. Consider yourself to be kindly pointed to the MCVE link ;)
 
@AndrasDeak ok
 
user8451312
Andras, you talking to me or someone else?
 
8:44 PM
I most certainly am.
>>> import pandas as pd
>>> df = pd.DataFrame({'day':[0,1,2], 'nice_weather':[True,False,True]})
>>> df
   day  nice_weather
0    0          True
1    1         False
2    2          True
>>> df['nice_weather']
0     True
1    False
2     True
Name: nice_weather, dtype: bool
there, you have a minimal dataframe
what do you mean by "target variable"?
 
user8451312
nice_weather is a target variable here
 
Okay? So what is your question?
 
user8451312
wait a minute, i will find some example to show you why i need it
 
Thank you!
 
9:08 PM
@wim Ok. Tides were over 10% stronger 620 Myr ago, since the tidal force scales according to the inverse cube law (see the last formula here), and (384400/370946)**3 ~= 1.113
 
9:40 PM
So, shockingly, the term "target variable" only makes sense in terms of a different framework, and not just a standalone pandas dataframe.
 
user8451312
import pandas as pd
import pandas_ml as pdml
import numpy as np
from numpy import array
import nltk
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
import re
from datetime import datetime
startTime = datetime.now()
from pandas import DataFrame
dataset=pd.read_csv("final.csv")
df=pdml.ModelFrame(dataset, target='label')
df=df.drop_duplicates("post_text", keep="first")

X_train, X_test, y_train, y_test = train_test_split(df.data, df.target, test_size=0.3)
 
user8451312
Andras, i stressed out that i used pandas model frame and that there i can set target variables, and asked if i can set them in pandas dataframe.
 
well, are df.data and df.target sequences or array-likes?
I guess at least one of them aren't, and that's what the error is referring to
I know some pandas but I know absolutely no sklearn
 
user8451312
Thanks
 
user8451312
9:55 PM
I managed to turn df.data and df.target into array. But i cant use df.data in the rest of the code as array, but as a list. How can i convert df.data to a list, since its a model frame?
 
do you really need a list?
numpy arrays have a .tolist() method
it's very rarely needed and is best avoided
 
user8451312
i tried that, but it returned a list of lists of strings
 
@hope94 because that's what a multidimensional array looks like
 
user8451312
well, can i turn it to dataframe series? my code worked with that
 
@hope94 you probably can, but I'm not sure how and the shape of your data is unclear
if you want a flat 1d list (even less likely!), you can use arr.ravel().tolist() I guess
but that sounds like a solution to an XY problem
if your data needs to be 1d you can also reshape it to 1d as an array
 

« first day (2502 days earlier)      last day (2449 days later) »