🐍📰 Altair: Declarative Charts With Python Build interactive Python charts the declarative way with Altair. Map data to visual properties and add linked selections. No JavaScript required https://lnkd.in/ghbuFY3H
Altair Declarative Charts with Python
More Relevant Posts
-
The Hidden Cost of Inline Code in Claude Code Command Files Inline Python in Claude Code command files bloats token usage and hurts maintainability. Learn how to fix it with a proper CLI layer.... https://lnkd.in/exkTBynr
To view or add a comment, sign in
-
🐍 Python has had frozenset for decades. Python may soon have frozendict The key nuance: frozendict is not part of a stable Python release yet. It is targeted for Python 3.15 and is available in preview builds for testing. Treat it as an upcoming feature, not something already shipped in production. Here’s why it matters ⚙️ Regular dictionaries in Python are mutable. You can add keys, reassign values, and remove items at any time. They are also unhashable, which means they cannot be used as keys in other dictionaries or stored in sets. In addition, like all mutable objects, they can be modified when passed into functions that receive them, which can make it harder to guarantee that data remains unchanged. frozendict addresses a long-standing need in the Python ecosystem for an immutable, hashable mapping type. 🔧 What it provides → Hashable - can be used as a dictionary key or stored in a set → Immutable - attempts to modify raise an exception at runtime → Preserves insertion order 💡 What this enables → Configuration objects that cannot be accidentally modified → Cache keys that require stable hashing → Safer data sharing between components → Functional-style patterns without defensive copying If you are using Python 3.15 preview builds, you can experiment with it today config = frozendict(api_version="v2", timeout=30, retries=3) # config["timeout"] = 10 → TypeError More information 👉 https://shorturl.at/g4IE6 #Python #Python3 #Python315 #Programming #ProgrammingLanguages #SoftwareEngineering #SoftwareDevelopment #BackendDevelopment #DevOps #CleanCode #SystemDesign #CodeQuality #ComputerScience #DevTactics #Developer #Programmer
To view or add a comment, sign in
-
-
✍️ New post introducing profiling-explorer, a tool for exploring Python profiling data (pstats files). Use it with the classic cProfile (now called profiling.tracing) or Python 3.15’s new sampling profiler, Tachyon (profiling.sampling). https://lnkd.in/eZ6D8ZMD #Python
To view or add a comment, sign in
-
Python: @staticmethod vs @classmethod (Explained Simply) In Python classes, not all methods behave the same. There are 3 types of methods: 1) Instance Method: Works with object data. def show_name(self): • Uses self. • Accesses instance variables. 2) Class Method (@classmethod): Works with class-level data. @classmethod • Uses cls. • Can modify class variables. • Shared across all objects. 3) Static Method (@staticmethod): Independent utility function. @staticmethod • No self, no cls. • Doesn’t modify class or instance. • Used for helper logic. In this example: • show_name() → works on object. • change_company() → updates company for all employees. • greet() → simple helper function. Think of it like this: - Instance → works with object. - Class → works with class. - Static → works independently. Comment down, Which one do you use most in your code?
To view or add a comment, sign in
-
-
ArcGIS API for Python 2.4.3 adds automation upgrades for Dashboards, introduces https://bit.ly/3Q3Lb2i module, expands raster and mapping capabilities, enables converting item graphs to knowledge graphs, and now lets you create surveys directly in Python. https://bit.ly/4tQaL9A
To view or add a comment, sign in
-
🐍📰 Gemini CLI vs Claude Code: Which to Choose for Python Tasks Gemini CLI vs Claude Code: compare setup, performance, code quality, and cost to find the right Python AI coding tool for your workflow https://lnkd.in/gGAXv_ph
To view or add a comment, sign in
-
Sometimes small Python behaviors end up causing big confusion in production. I faced one such case with shallow copies when handling nested lists and dicts. It looked simple at first but ended up modifying original data silently. Wrote a plain and honest Medium piece about what actually happened and how I fixed it. It is not theory or textbook — just one of those bugs you only understand after you hit it yourself. Friend link below ⬇️ https://lnkd.in/ehYY9zRY #Python #BackendDevelopment #SoftwareEngineering #CodingJourney #TechCommunity #MediumDev #PythonTips #LearningByDebugging
To view or add a comment, sign in
-
I wrote a short guide on using `uv` for Python dependency management. It’s helped clean up my local environments a bit, so I thought I’d share it in case it’s useful to anyone else. https://lnkd.in/dwqduhp9 #Python #uv
To view or add a comment, sign in
-
Machine Learning Graph Data using python igraph #machinelearning #datascience #graphdata #pythonigraph igraph is a fast open source tool to manipulate and analyze graphs or networks. It is primarily written in C. python-igraph is igraph’s interface for the Python programming language. python-graph includes functionality for graph plotting and conversion from/to networkx. Python interface of igraph, a fast and open source C library to manipulate and analyze graphs (aka networks). It can be used to: Create, manipulate, and analyze networks. Convert graphs from/to networkx, graph-tool and many file formats. Plot networks using Cairo, matplotlib, and plotly. https://lnkd.in/gzzzK7eU
To view or add a comment, sign in
-
🚀 #python #Ep 2: Understanding #Data Types in Python In Python, everything is an object, and every object has a data type. Data types define what kind of value a variable holds and what operations you can perform on it. 🔗 Code reference: https://lnkd.in/ei6STRqT 🧠 Why Data Types Matter? Prevent errors in your code Help Python understand how to store and process data Make your programs efficient and readable 📌 Common Python Data Types 🔢 Numeric Types int → Whole numbers (10, -5) float → Decimal numbers (3.14) complex → Complex numbers (2+3j) 📝 String (str) Used to store text Example: "Hello Python" ✅ Boolean (bool) Only two values: True or False 📦 Sequence Types list → Ordered & mutable → [1, 2, 3] tuple → Ordered & immutable → (1, 2, 3) 🗂️ Mapping Type dict → Key-value pairs → {"name": "Hari"} 🔁 Set Types set → Unordered & unique values → {1, 2, 3} 💡 Pro Tip Python is dynamically typed, meaning you don’t need to declare data types explicitly — Python figures it out at runtime 🔍 Example x = 10 # int y = 3.14 # float name = "Hari" # str is_active = True # bool 📣 Final Thought Mastering data types is the foundation of Python programming. Once you understand them, everything else becomes easier! #Python #Coding
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development