home.social

#pandas — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pandas, aggregated by home.social.

fetched live
  1. #pandas (the software) should be forbidden. I will not elaborate.

  2. We just finished another day at in Krakow. But the fun keeps coming -- either at a social event, or using to analyze Krakow tourism data from the Polish government!

    Level up your data-analysis skills every Wednesday: BambooWeekly.com

  3. We just finished another day at #EuroPython2026 in Krakow. But the fun keeps coming -- either at a social event, or using #Python #Pandas to analyze Krakow tourism data from the Polish government!

    Level up your data-analysis skills every Wednesday: BambooWeekly.com

  4. I'm in Krakow for , and as such, Bamboo Weekly is about tourism to Krakow. Get data from the Polish government, and answer data-analysis questions with !

    More info: BambooWeekly.com

  5. I'm in Krakow for #EuroPython, and as such, Bamboo Weekly is about tourism to Krakow. Get data from the Polish government, and answer data-analysis questions with #Python #Pandas!

    More info: BambooWeekly.com

  6. #NVIDIA published a blog post where they present GQE, a GPU-based query engine. Querying data from databases with GPU accelleration is beyond cool, and will certainly optimize the storage requirements for #bigdata due to enabling for more efficient compression algorithms. Here is the blog post:

    Designing GPU-Accelerated Query Engines with NVIDIA GQE

    #bigdata #databases #polars #pandas #datascience

  7. #NVIDIA published a blog post where they present GQE, a GPU-based query engine. Querying data from databases with GPU accelleration is beyond cool, and will certainly optimize the storage requirements for #bigdata due to enabling for more efficient compression algorithms. Here is the blog post:

    Designing GPU-Accelerated Query Engines with NVIDIA GQE

    #bigdata #databases #polars #pandas #datascience

  8. Europe has been pretty hot lately -- and in the latest Bamboo Weekly, we used , GeoPandas, Marimo, and Plotly to find out just *how* hot.

    Every week, get better at data analysis: BambooWeekly.com

  9. Europe has been pretty hot lately -- and in the latest Bamboo Weekly, we used #Python #Pandas, GeoPandas, Marimo, and Plotly to find out just *how* hot.

    Every week, get better at data analysis: BambooWeekly.com

  10. Europe has been very hot for the last few weeks. How hot? In the latest Bamboo Weekly, we use to find out, using APIs and GeoPandas. Plus, we use Marimo for interactive plots.

    Level up your data skills at BambooWeekly.com ... and stay cool!

  11. Europe has been very hot for the last few weeks. How hot? In the latest Bamboo Weekly, we use #Python #Pandas to find out, using APIs and GeoPandas. Plus, we use Marimo for interactive plots.

    Level up your data skills at BambooWeekly.com ... and stay cool!

  12. #AIP:
    "
    ".. extrem lichtschwache Zwerggalaxie wurde in der Nähe der Andromedagalaxie (M31) erstmals beobachtet. .. Studie legt nahe, dass die Galaxie, benannt And XXXVI, eine der lichtschwächsten Satellitengalaxien im Umfeld von Andromeda ist. ..
    "
    ".. Alter von etwa 12,5 Milliarden Jahren .. erstaunlich arm an schweren Elementen .."

    aip.de/de/news/galaxy-around-a

    29.6.2026

    #Andromeda #AndXXXVI #Astronomie #DM #DunkleMaterie #Galaxie #GTC #Kosmologie #PAndAS #Standardmodell #Universum #Zwerggalaxie

  13. #AIP:
    "
    ".. extrem lichtschwache Zwerggalaxie wurde in der Nähe der Andromedagalaxie (M31) erstmals beobachtet. .. Studie legt nahe, dass die Galaxie, benannt And XXXVI, eine der lichtschwächsten Satellitengalaxien im Umfeld von Andromeda ist. ..
    "
    ".. Alter von etwa 12,5 Milliarden Jahren .. erstaunlich arm an schweren Elementen .."

    aip.de/de/news/galaxy-around-a

    29.6.2026

    #Andromeda #AndXXXVI #Astronomie #DM #DunkleMaterie #Galaxie #GTC #Kosmologie #PAndAS #Standardmodell #Universum #Zwerggalaxie

  14. Trying to use .loc to retrieve a slice in ? If the index repeats, you need to sort it:

    s = Series([10, 20, 30], index=list('aba'))

    s.loc['a':'b'] # KeyError: "Cannot get left slice bound for non-unique label: 'a'"

    s.sort_index().loc['a':'b'] # works!

  15. Trying to use .loc to retrieve a slice in #Python #Pandas? If the index repeats, you need to sort it:

    s = Series([10, 20, 30], index=list('aba'))

    s.loc['a':'b'] # KeyError: "Cannot get left slice bound for non-unique label: 'a'"

    s.sort_index().loc['a':'b'] # works!

  16. Retrieve from a data frame with .loc, which takes 2 arguments:

    1. Row selector: index, list of indexes, or a mask index (i.e., booleans)
    2. Optional column selector: column name or a list of column names

    .loc uses [] and not (), so you can use slices!

  17. Retrieve from a #Python #Pandas data frame with .loc, which takes 2 arguments:

    1. Row selector: index, list of indexes, or a mask index (i.e., booleans)
    2. Optional column selector: column name or a list of column names

    .loc uses [] and not (), so you can use slices!

  18. Looking to level up your , , or ?

    My in-browser, interactive AI tutor — used in all LernerPython courses — has you covered.

    This week's new features:

    • Live pair programming
    • Translation of questions into your native language
    • SQL exercises

    Try it (free, no obligation) at buff.ly/zY4k23g

  19. Looking to level up your #Python, #Pandas, or #Git?

    My in-browser, interactive AI tutor — used in all LernerPython courses — has you covered.

    This week's new features:

    • Live pair programming
    • Translation of questions into your native language
    • SQL exercises

    Try it (free, no obligation) at buff.ly/zY4k23g

  20. Which governments restrict religion the most? Members of which religions are harassed the most? And how has this changed over the years?

    In the latest Bamboo Weekly, we use to analyze data from Pew Research.

    Level up your data skills every Wednesday, at buff.ly/D6C2X2C

  21. Which governments restrict religion the most? Members of which religions are harassed the most? And how has this changed over the years?

    In the latest Bamboo Weekly, we use #Python #Pandas to analyze data from Pew Research.

    Level up your data skills every Wednesday, at buff.ly/D6C2X2C

  22. Filtering a data frame by the index? Pandas 3 adds pd.col, removing lambda from our .loc expression.

    Before:

    df.loc[ lambda df_: df_['x'] > df_['w'] ]

    Now:

    df.loc[ pd.col('x') > pd.col('w') ]

    Note: You cannot use pd.col with a series, only a data frame.

  23. Filtering a #Python #Pandas data frame by the index? Pandas 3 adds pd.col, removing lambda from our .loc expression.

    Before:

    df.loc[ lambda df_: df_['x'] > df_['w'] ]

    Now:

    df.loc[ pd.col('x') > pd.col('w') ]

    Note: You cannot use pd.col with a series, only a data frame.

  24. To filter a data frame by rows, use the same syntax and rules as for series:

    df.loc[ lambda df_: df_['x'] > df_['w'] ]

    The lambda still returns a boolean series. The expression can use any column from the data frame.

    Tomorrow: How Pandas 3 improves on this.

  25. To filter a #Python #Pandas data frame by rows, use the same syntax and rules as for series:

    df.loc[ lambda df_: df_['x'] > df_['w'] ]

    The lambda still returns a boolean series. The expression can use any column from the data frame.

    Tomorrow: How Pandas 3 improves on this.

  26. AI With Python 2026 (Part 5)

    Data is only valuable when you can understand it.

    Learn:
    DataFrames
    Data cleaning
    Data analysis
    Preparing data for AI

    Pandas turns raw data into insights.

    Read: abkarikari23.medium.com/ai-wit

    #AI #Python #Pandas #DataScience #JMSM #KNKA #MachineLearning #AIWithPython2026

  27. AI With Python 2026 (Part 5)

    Data is only valuable when you can understand it.

    Learn:
    DataFrames
    Data cleaning
    Data analysis
    Preparing data for AI

    Pandas turns raw data into insights.

    Read: abkarikari23.medium.com/ai-wit

    #AI #Python #Pandas #DataScience #JMSM #KNKA #MachineLearning #AIWithPython2026

  28. Why do I use loc+lambda to filter a series?

    1. If earlier lines filter common values, later loc/lambda lines have less to filter -- so queries run faster.
    2. It's easier to build queries, one line at a time.
    3. No assignment means less to track and clean up.

  29. Why do I use loc+lambda to filter a #Python #Pandas series?

    1. If earlier lines filter common values, later loc/lambda lines have less to filter -- so queries run faster.
    2. It's easier to build queries, one line at a time.
    3. No assignment means less to track and clean up.

  30. Best filter method for a series? Use loc + lambda, thus filtering the series you got, not the global s:

    s = pd.Series([10, 15, 20, 25, 30])

    (
    s
    .loc[ lambda s_: (s_ > 20)] # filters s
    .loc[ lambda s_: (s_ % 2 == 1) ] # filters output from first 1
    )

  31. Best filter method for a #Python #Pandas series? Use loc + lambda, thus filtering the series you got, not the global s:

    s = pd.Series([10, 15, 20, 25, 30])

    (
    s
    .loc[ lambda s_: (s_ > 20)] # filters s
    .loc[ lambda s_: (s_ % 2 == 1) ] # filters output from first 1
    )

  32. My favorite way to apply multiple filters to a series? Method chaining calling loc 2x:

    s = pd.Series([10, 15, 20, 25, 30])

    (
    s
    .loc[ (s > 20)] # filters s
    .loc[ (s % 2 == 1) ] # filters line 1
    )

    But: This can break! Tomorrow, a better way.

  33. My favorite way to apply multiple filters to a #Python #Pandas series? Method chaining calling loc 2x:

    s = pd.Series([10, 15, 20, 25, 30])

    (
    s
    .loc[ (s > 20)] # filters s
    .loc[ (s % 2 == 1) ] # filters line 1
    )

    But: This can break! Tomorrow, a better way.

  34. When applying multiple filters to a series, it's often best to use multiple lines:

    s = pd.Series([10, 15, 20, 25, 30])

    s.loc[ (s > 20) &
    (s % 2 == 1) ]

    This is easier to read, write, and maintain.

  35. When applying multiple filters to a #Python #Pandas series, it's often best to use multiple lines:

    s = pd.Series([10, 15, 20, 25, 30])

    s.loc[ (s > 20) &
    (s % 2 == 1) ]

    This is easier to read, write, and maintain.

  36. Want to filter a series with two conditions? One option: Combine two boolean series with &.

    But careful: Put () around each boolean condition.

    s = pd.Series([10, 15, 20, 25, 30])
    s.loc[ (s > 20) & (s % 2 == 1) ] # just 25

  37. Want to filter a #Python #Pandas series with two conditions? One option: Combine two boolean series with &.

    But careful: Put () around each boolean condition.

    s = pd.Series([10, 15, 20, 25, 30])
    s.loc[ (s > 20) & (s % 2 == 1) ] # just 25

  38. How high is inflation? And is it the same in every country?

    The latest Bamboo Weekly poses six inflation-related questions to solve with , using the latest OECD data.

    Read it at: BambooWeekly.com

  39. How high is inflation? And is it the same in every country?

    The latest Bamboo Weekly poses six inflation-related questions to solve with #Python #Pandas, using the latest OECD data.

    Read it at: BambooWeekly.com

  40. Retrieve selected items from a series by broadcasting a condition, then using it as a boolean ("mask") index:

    s = pd.Series([10, 20, 30], index=list('abc'))
    s >= 20 # [False, True, True]
    s.loc[ s >= 20 ] # returns [20, 30]

  41. Retrieve selected items from a #Python #Pandas series by broadcasting a condition, then using it as a boolean ("mask") index:

    s = pd.Series([10, 20, 30], index=list('abc'))
    s >= 20 # [False, True, True]
    s.loc[ s >= 20 ] # returns [20, 30]

  42. Retrieve from a series with .loc and indexes:

    s = pd.Series([10, 20, 30], index=list('abc'))
    s.loc[['a', 'c']] # [10, 30]

    If you pass booleans, True means "return a value," and False means "ignore it."

    s.loc[[True, False, True]] # [10, 30]

  43. Retrieve from a #Python #Pandas series with .loc and indexes:

    s = pd.Series([10, 20, 30], index=list('abc'))
    s.loc[['a', 'c']] # [10, 30]

    If you pass booleans, True means "return a value," and False means "ignore it."

    s.loc[[True, False, True]] # [10, 30]

  44. Apply an operator to a series, with a scalar value, *broadcasts*:

    s = pd.Series([10, 20, 30], index=list('abc'))

    Arithmetic is most obvious:

    s + 5 # [15, 25, 35]
    s ** 2 # [100, 400, 900]

    But comparisons work, too:

    s >= 20 # [False, True, True]

  45. Apply an operator to a #Python #Pandas series, with a scalar value, *broadcasts*:

    s = pd.Series([10, 20, 30], index=list('abc'))

    Arithmetic is most obvious:

    s + 5 # [15, 25, 35]
    s ** 2 # [100, 400, 900]

    But comparisons work, too:

    s >= 20 # [False, True, True]