Skip to content

WEB: Update Python for Data Analysis book #48491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 12, 2022
Merged

Conversation

mroeschke
Copy link
Member

No description provided.

@mroeschke mroeschke added the Web pandas website label Sep 10, 2022
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I don't remember exactly, but I think I comverted the image to a gif with custom palette to make it as small as possible last time. I see the new image is 30kb vs the 5kb of the old. Maybe not a big deal, bit we could try to do the same and keep the size of the pandas repo a bit smaller.

@mroeschke
Copy link
Member Author

Sounds reasonable to convert the jpg to gif to reduce size. Not too familiar how to do that so any suggestions?

@datapythonista
Copy link
Member

This is the original 30 kb file:

pydata_book

I'd use this version, it's 12kb:

pydata_book_16colors

I can reduce it more, but the new cover has more colors and it's more sensitive than the previous to compression. While probably no big deal, the quality of a smaller version starts to be clearly worse. This is a 8kb image:

pydata_book_8colors

<a href="https://amzn.to/2KI5JJw">
<img alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.gif"/>
<a href="https://amzn.to/3DyLaJc">
<img alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.jpg"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to revert this back to gif

<a href="https://amzn.to/2KI5JJw">
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.gif"/>
<a href="https://amzn.to/3DyLaJc">
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.jpg"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@mroeschke
Copy link
Member Author

Thanks, any thoughts whether we should include this for 1.5?

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @mroeschke

This only affects the website, so I'd merge when ready, independently from 1.5 or any release, which as far as I know are unaffected by the website.

@mroeschke mroeschke added this to the 1.6 milestone Sep 12, 2022
@mroeschke mroeschke merged commit 84fa883 into pandas-dev:main Sep 12, 2022
@mroeschke mroeschke deleted the web/book branch September 12, 2022 18:00
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* WEB: Update Python for Data Analysis book

* Add small image

* Change back to gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Web pandas website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants