Skip to primary content
Skip to secondary content

Coding Stream of Consciousness

by John Humphreys – Random code from my life.

Coding Stream of Consciousness

Main menu

  • Blog Posts
  • About Me
  • Linked In : Follow Me
  • Stack Overflow
  • MapR Forum
  • Conferences
  • Contact

Tag Archives: pandas

Python Pandas – Stop Truncating Strings

Posted on April 17, 2020 by John Humphreys
1

Not really a post here, just a note.  I just saw in Airflow code that you can do this to prevent pandas from truncating strings.  I knew the setting, but usually enter some big arbitrary int like 100000; so  this is a nice change.

# Keeping pandas from truncating long strings
pd.set_option('display.max_colwidth', -1)
Posted in general, python | Tagged pandas, python | 1 Reply

Archives

  • January 2026
  • May 2024
  • May 2023
  • December 2022
  • November 2022
  • September 2022
  • January 2022
  • November 2021
  • September 2021
  • August 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018

Meta

  • Create account
  • Log in
Blog at WordPress.com.
  • Subscribe Subscribed
    • Coding Stream of Consciousness
    • Join 36 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Coding Stream of Consciousness
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar