Comments (4)
Thanks for the report - is it the email program that is doing the truncation, or pandas? In case it's the former,
there should be an option to control this from within the styler framework.
What do you mean by "this"? What control are you seeking?
from pandas.
Hey!
For context, I am using outlook.
I think outlook is probably doing the truncating - comparing the dataframe html string generated in outlook to the same string being generated on chrome. So modern browsers seem to handle lines of cell IDs being longer than one to two thousand characters.
As for control, I would like to have the functionality of the textwrap package be optional in the Styler.to_html(). By "this" I mean to be able to tell Styler to generate HTML with a character limit per line or a supported way to ensure the cell IDs are not being prematurely chopped off when rendered. Maybe having a new line character or something that tells outlook/ browser to start a new line after a set amount of cell IDs.
Mostly raising the issue so that there is a community supported and documented way to avoid the styling becoming inconsistent.
I am not an expert on how outlook renders HTML or the encoding/ decoding that is going on behind the scenes so maybe the community knows something I don't.
from pandas.
Thanks for the details!
It seems to me pandas is producing the expected output, and that Python string parsing utilities allow convenient modification of that result in this case. Adding the functionality into pandas means the additional logic, API, docs, and testing, and that overhead results in no new additional features users couldn't do before, other than perhaps save a few keystrokes. With this, I'm against it's inclusion in pandas.
cc @attack68
from pandas.
Agreed this is not a problem with pandas, but with the external application. There are numerous ways to tackle your external problem and you have indeed found one solution. Others might include shortening the id references in pandas which is also possible.
Pandas should not subjectively choose a text shortening method and implement it for this problem.
But this is a useful issue report for users who encounter similar.
from pandas.
Related Issues (20)
- BUG: ArrowNotImplementedError: Unsupported cast from int64 to null using function cast_null HOT 1
- ENH: Adding `skipna:bool` to Rolling.sum HOT 2
- BUG: Replace fails after NaN in a Series of `string` HOT 2
- DEPR: future.no_silent_downcasting option HOT 1
- BUILD: Python Docker Build Issues HOT 4
- DOC: Incorrect Documentation: pd.Dataframe.dropna HOT 2
- BUG: Spurious `FutureWarning` when using `pd.read_json()` HOT 2
- BUG: read_json silently ignores the dtype when engine=pyarrow HOT 2
- ENH: support the Arrow PyCapsule Interface on pandas.Series (export) HOT 5
- BUG: HOT 3
- BUG: "Bad CRC-32 for file'docProps/core.xml" for Read large Excel file HOT 1
- BUG: Incorrect float32/float64 comparison result HOT 7
- BUG: import has error HOT 2
- BUG: subtracting datetime series from datetime dataframe, or datetime dataframe from datetime series, raises TypeError or UFuncTypeError HOT 2
- BUG: read_csv's usecols type hint isn't match with list of strings HOT 2
- BUG: OverflowError: value too large to convert to int when manipulating very large dataframes HOT 6
- DOC: Wrong bug number in what's new v3.0.0 HOT 3
- ENH: Checking gaps for time series
- ENH: Support non-categorical values for pandas bar plots when x axis is datetime values HOT 1
- ENH: In pandas.testing.assert_frame_equal, support per-column configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.