Skip to content
#

pandas

Here are 5,429 public repositories matching this topic...

Khris777
Khris777 commented Feb 18, 2020

Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy as np

df = pd.DataFrame({'A': [1, 2, 3, 4, 5], 'B': [7, 5, np.nan, 3, 2]})
df.plot(x='A', y='B')
df = df.astype('Int64')
df.plot(x='A', y='B')

Problem description

The first plotting command works, the second throws the error message

TypeError: float() argument must be a string o

2313499
2313499 commented Mar 2, 2019

I was having a very hard time figuring out

fill = A.stack().mean()
A.add(B, fill_value=fill)

fill = 4.5. However I computed a value of 3.2 because I was taking the mean from the column of A not the DataFrame A.
This coming after the Indexing chapter where "explicit is better than implicit." I was thinking that this should be a little more explicit.

donnemartin
donnemartin commented Jul 1, 2015

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation. Its goal is to provide elegant, concise construction of novel graphics in the style of D3.js, but also deliver this capability with high-performance interactivity over very large or streaming datasets. Bokeh can help anyone who would like to quickly and easi

TomNicholas
TomNicholas commented Dec 17, 2019

Hi, I'm trying to visualise the graph involved when xarray writes to a netcdf file, but no visualisation is appearing.

import dask
import xarray

ds = xarray.Dataset({'a': 0})
task = ds.to_netcdf('dat.nc',compute=False)
task.compute()
print(task)
task.visualise(filename='netcdf.svg')  # This file is never produced


def inc(x):
    return x + 1

z = dask.delayed(inc)(1)
neomatrix369
neomatrix369 commented Jan 13, 2020

Missing functionality

On the back of the issue raised - pandas-profiling/pandas-profiling#315 - I would like to request for improved documentation about removed features and alternative ways to overcome them when using the new version of pandas-profiling, starting v2.4.0.

Proposed feature

  • docs on why style={'full_width': True}, minify_html=True ca
gshimansky
gshimansky commented Feb 27, 2020

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Ubuntu 19.10

  • Modin version (modin.__version__):

0.7.1+2.g4f36f23

  • Python version:

Python 3.7.5

  • Code we can use to reproduce:
#import pandas as pd
import ray
ray.init(huge_pages=False, plasma_directory="/localdisk/gashiman/plasma", memory=1024*1024*1024*200, ob
rhiever
rhiever commented Jan 31, 2018

I suggest keeping the README short and to the point: badges showing status etc. of the package, what is the purpose of the package, how to install, 1-2 basic code examples, and contributing information.

More examples, function API docs, and detailed descriptions can be moved to the docs site.

I also suggest adding a gallery to the docs, [similar to Seaborn](https://seaborn.pydata.org/example

addisonlynch
addisonlynch commented Apr 14, 2018

It would be nice to have some general developer documentation for potential contributors to help in cases such as #510, etc.

What are the best steps to take towards accomplishing this? Maybe something similar (albeit not all details needed) to the Pandas developer docs?

I've begun an implementation of this on my fork, basicall

ilovecocolade
ilovecocolade commented Sep 18, 2019

Change the default value for quantiles in this function to quantiles=None. When using bins instead of quantiles with the utils.get_clean_factor_and_forward_returns() function, there is an error in the utils.quantize_factor() inferring that no bin size or quantile sizes were passed but it is actually because utils.quantize_factor() passes quantiles = 5 by default, regardless of if bins in not None.

Improve this page

Add a description, image, and links to the pandas topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pandas topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.