Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:26
    rohitkg98 commented #30329
  • 02:04
    jbrockmendel commented #31136
  • 01:20
    samuelweisenthal commented #30276
  • 01:20
    jbrockmendel opened #31143
  • Jan 19 23:46
    xin-jin commented #5788
  • Jan 19 23:35
    jreback commented #5788
  • Jan 19 23:28
    xin-jin commented #5788
  • Jan 19 23:27
    xin-jin commented #5790
  • Jan 19 23:25
    xin-jin commented #5790
  • Jan 19 22:21
    jbrockmendel commented #31058
  • Jan 19 22:02
    StashOfCode commented #31140
  • Jan 19 22:00
    jreback closed #31141
  • Jan 19 22:00
    jreback commented #31141
  • Jan 19 21:59
    pep8speaks commented #31114
  • Jan 19 21:59
    tonywu1999 synchronize #31114
  • Jan 19 21:51
    datapythonista commented #31060
  • Jan 19 21:48
    jbrockmendel synchronize #30902
  • Jan 19 21:46
    jbrockmendel synchronize #30908
  • Jan 19 21:45
    dsaxton commented #31140
  • Jan 19 21:44
    jamesharrop opened #31142
Kolmar Kafran
@kafran
What's the difference between df['column'] and df.column?
William Ayd
@WillAyd
Usually nothing but the former is the preferred / suggested approach
Joris Van den Bossche
@jorisvandenbossche
Kolmar Kafran
@kafran
ThankYou very much
blessedeve
@blessedeve
Hi.. am a beginner and am excited to be here. Blessings , eve
Peter Hull
@pedro-w
Hi. Is there a way to select columns from a DataFrameGroupBy?
I wanted to group data once, then select several columns in turn without having to re-do the grouping each time.
df.groupby('x')[['y']] doesn't do what I expected it to.
Asked on SO, but I'm not sure if I'm asking in the right way... https://stackoverflow.com/questions/57629784/select-column-from-groupby-for-boxplot
killerontherun1
@killerontherun1
@datapythonista @TomAugspurger : FYI. Figured out the issue, in case anyone else faces this, it was an env (conda) problem. I did not remove the environment properly. Successfully got the env set up again and it is fixed.
Ntend7777
@Ntend7777
Hello
Ntend7777
@Ntend7777
Not
saeeddev
@sa-js
Shubham Sharma
@shubhamsharma199782
hello, anyone scrapped data from Walmart ???
i want to write a script that will search for a product and then scrap the search result from the website,
My question is that is Walmart allow scripts to scrap data and is anyone done this before
plz, i need help
Florent Piétot
@florentpietot
Hello, can anyone point me to source code that handles plotting a bar plot from a dataframe? e.g. when calling df.plot(kind='bar')
Florent Piétot
@florentpietot
Johannes Wienke
@languitar
Hi, has anyone seen that parquet files generated with the fastparquet backend cannot be read with the pyarrow implementation? pyarrow can read the parquet file but the conversion to pandas data frame seems to be messed up and fails
William Ayd
@WillAyd
Does anyone know what our rules for coercing np.datetime64 objects to pd types (Timestamp or NaTType) are?
I found the following somewhat interesting
>>> ser = pd.Series([np.datetime64("2000-01-01")], dtype=object)
>>> type(ser.iloc[0])
numpy.datetime64
>>> type(ser.to_frame().iloc[0, 0])
pandas._libs.tslibs.timestamps.Timestamp
It seems like a Series can hold np.datetime64 in an object array, but a DataFrame cannot (tried also by constructing the DataFrame directly)
Amy
@AmyHUJI
Plots are not appearing in Spyder IDE, but scripts work fine in Jupyter. I did run below scripts in Jupyter and it did work fine. Why don't plots appear in the spyder console? Do these libraries only specific to Jupyter? What should I have to follow to get the scripts in Spyder. Could someone help me with his https://www.biostars.org/p/397000/#397092
Sakitha
@Sakitha
Hi, does apply in df.apply(fun) iterate over each columns in 'df' data-frame and pass them to 'fun' function as a series?
Assaf Ben-amitai
@assaf758_twitter
hi, does anyone knows if pandas can be instruct to format dataframe prints to use engineering notation (10M, 4G etc)?
William Ayd
@WillAyd
@datapythonista or anyone else with knowledge, is there a particular reason why we customize isort to control the placement of pandas.core?
Is it purely a stylistic concern or was it driven out of circular imports
Just came to mind while reviewing #27552
Peter M. Landwehr
@pmlandwehr
Curious: does anyone have a good trivial example of an extension array for holding a fixed length numpy vector?
Jeff Reback
@jreback
@WillAyd import ordering is meant to be in ordered blocks@for consistency; it’s stylistic
William Ayd
@WillAyd
Yea isn’t that the standard isort behavior?
So we override that?
Jeff Reback
@jreback
no it’s not standard the way we order
Peter M. Landwehr
@pmlandwehr
(We are trying to move some data around after a conversion from raw numpy, so just want to be able to carry the data in the vector without it getting mangled.)
William Ayd
@WillAyd
Right so just asking if there’s an overarching reason for the way we order
Outside of pandas if I run isort it would do something like this
from pandas.api import DataFrame
from pandas.core.dtypes.inference import is_list_like
With our current config though we get this in our code base
from pandas.core.dtypes.inference import is_list_like

from pandas.api import DataFrame
The former behaviour seems more intuitive and just readable (though subjective)
Jeff Reback
@jreback
i think brock setup some rules
Gabriel Corona
@randomstuff
@jreback, Hi! I sent you an email few days ago about a possible security issue in pandas. What's the recommended course of action? Submit a public issue ?
Tom Augspurger
@TomAugspurger
Gabriel Corona
@randomstuff
@TomAugspurger , I did not find this :)
Tom Augspurger
@TomAugspurger
It’s somewhat new :)
William Ayd
@WillAyd
Has anyone used the Stale app on GitHub before?
Right now we manually go through and close stale projects. If it’s pretty simple I feel like this could be an easy thing to set up and it could help keep things clean without the “personal” aspect of someone going through and closing another persons’ PR
Tom Augspurger
@TomAugspurger
I think we’ve talked about it before. I’m -0.5 on bots closing issues, just because I’ve been on the other end of issues going stale and being closed becuase the maintainer hasn’t responded yet.
William Ayd
@WillAyd
Do you think that’s a problem with pandas?
I guess the counter to that is that I feel like more often than not in pandas a maintainer is going through and pinging for an update (exceptions certainly apply)