Message from Python discussions

November 2018

— Wait... one more things that bugs me.
Should I implement this before I had actually reformated the values in Dataframe or after ?

Message permanent page


So you can consider writing your own loop. Because you will need to construct the list after map (hence iterate over it again) if you want to use it more than once.

— Yes, I will write a function, I guess

— Https://

How to make the contour to look smoother? The edges don't look so sharp, and they don't make a perfect shape.. and the color looks like a paint edit

Message permanent page

— This is what I mean

— I don't understand this one

— I'm trying to get close to this filter

— Thanks ^^

— Well, in the csv file I am working with , dates are strings , like '01.01.2018'. So I want to reformat them into datetime format. I looked this up in the documentation. Dataframe.astype() allow to change the dtypes of dataframe. SO I can't really understand. Should I reformat all the string-dates in the dataframe into datetime types before I write 'df.astype(datetime)' or should I preliminarily apply this function and do all the reformating afterwards

Message permanent page

— Sorry but i don't know which library do you use. Dtype, Dataframe etc. I can't help with that. But if the thing is convert them to datetime object, why not just use builtin datetime library?
And you said that there are exact number of spaces on each cell. If you use datetime library you don't need to strip them at all.


would do the trick.

Message permanent page

— I have done that

— DataFrame is a object of Pandas library