TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Comprehensive Guide on Data Visualization with Pandas

211 点作者 min2bro超过 5 年前

15 条评论

lawlorino超过 5 年前
I really am not sure how "comprehensive" I would call this, after glancing over it it looks like one of the million currently existing basic pandas plotting guides.
评论 #20984718 未加载
评论 #20984656 未加载
评论 #20984799 未加载
评论 #20984630 未加载
whitehouse3超过 5 年前
Lately, `pip install pandas` is my first step after making a new virtual environment. Its read_sql and read_csv methods are magic. The resulting DataFrames are just like DataTables in C#. And for complex joins and aggregations, I can DataFrame.to_sql into an in-memory SQLite database.<p>Pandas feels like the wrong tool for this job. I don&#x27;t use multi-indexes or any statistical methods. I don&#x27;t chart anything.<p>But it&#x27;s so darn convenient. If the time comes to optimize I can `import csv` directly and improve performance. But nothing beats it for prototyping.<p>Are there better options in this space?
评论 #20984984 未加载
评论 #20984878 未加载
评论 #20985242 未加载
Dowwie超过 5 年前
Other graphing libs for jupyter notebooks include:<p><pre><code> - Bokeh - Plotly - Seaborn </code></pre> These libraries were built to improve upon matplotlib or each other, weren&#x27;t they? Yet, people continue to reach for &quot;the original&quot; ¯\(ツ)&#x2F;¯
评论 #20985259 未加载
评论 #20985248 未加载
评论 #20985892 未加载
psv1超过 5 年前
The matlab plotting syntax got transferred to Python through matplotlib and got very deeply ingrained - was first, got popular, built into pandas and statsmodels, foundation of seaborn etc. Recently I saw a snippet of Julia code that uses &quot;pyplot&quot;, I assume because people find it familiar and convenient. That API just refuses to die.
psv1超过 5 年前
The pandas wrappers around matplotlib are convenient but for anything that needs customising, you&#x27;ll need to reach for the full matplotlib API anyway.
评论 #20984960 未加载
mayankkaizen超过 5 年前
Does anybody here think that Pandas API design is ugly and inconsistent? It feels like hack after hack.
评论 #20986266 未加载
评论 #20988042 未加载
lazzlazzlazz超过 5 年前
I strongly recommend Altair (<a href="https:&#x2F;&#x2F;altair-viz.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;altair-viz.github.io&#x2F;</a>) as an extremely Pandas-friendly alternative approach to data visualization. It&#x27;s the first library that has successfully &quot;hidden&quot; the ugly, gnarled matplotlib layer underneath for me. It also looks killer.
评论 #21028177 未加载
评论 #20986098 未加载
Tycho超过 5 年前
I recommend reading the official docs. I think they improved the plotting interface recently, and I learned a lot from reading through the guide:<p><a href="https:&#x2F;&#x2F;pandas.pydata.org&#x2F;pandas-docs&#x2F;stable&#x2F;user_guide&#x2F;visualization.html" rel="nofollow">https:&#x2F;&#x2F;pandas.pydata.org&#x2F;pandas-docs&#x2F;stable&#x2F;user_guide&#x2F;visu...</a>
teodorlu超过 5 年前
Here&#x27;s a dataset link that doesn&#x27;t require registering with Kaggle:<p><pre><code> https:&#x2F;&#x2F;www.teodorheggelund.com&#x2F;static&#x2F;world-happiness-report-2019.zip</code></pre>
scarby2超过 5 年前
I had no idea what Pandas was (other than the plural of the cute fluffy creature). I was really hoping this was going to talk about how to use panda images to visualize data!
tempodox超过 5 年前
The name “Pandas” is really misleading, especially in the title of this article. It&#x27;s missing the phrase, “No animals were harmed in the making of these graphs”.
zer0faith超过 5 年前
It shows how to generate the different charts but it doesn&#x27;t show you how to save them as a image.
评论 #20988241 未加载
评论 #20985276 未加载
j88439h84超过 5 年前
Pandas should listen to the unix philosophy a bit and remove its plotting API.
codeulike超过 5 年前
I would have thought if you focused on bamboo leaves as the main visual motif then that would keep their attention.
kyberias超过 5 年前
Leave those peaceful furry creatures alone, please.
评论 #20984437 未加载