df['count'].clip(lower=1, upper=10)
Showing posts with label pandas. Show all posts
Showing posts with label pandas. Show all posts
2023/10/09
2023/10/08
pandas tricks 3
df.sort_values(["a","b","C", ascending=[True, False, True)
df.nlargest(10, 'a').nsmallest(5,"b)
pandas tricks 2
df.select_dtypes(include=['int'])
df.select_dtypes(include=['number'])
df.selected_dytpes(include=['np.number'])
df.get_dtype_counts()
2022/06/15
pandas, groupby result to file
grpd = df.groupby('name').size()
print(grpd)
grpd.reset_index().to_csv('result.csv')
Subscribe to:
Posts (Atom)
How to Supercharge Your Python Classes with Class Methods
How to Supercharge Your Python Classes with Class Methods | by Siavash Yasini | May, 2024 | Towards Data Science As we just mentioned, a c...
-
https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/ A Kubernetes service - I’m using Docker Desktop with Kub...
-
Five basic elements about reinforcement learning: agent, state, environment, policy, reward. Here is an example https://builtin.com/data-...
-
Comparison among bestText to Image AI generation Here are some results for "every success starts from small steps" 1) Dalle E 2,...
-
https://www.analyseup.com/python-machine-learning/catboost-python-tutorial.html
-
What is a Generalised Additive Model? What are Generalised Additive Models? | Towards Data Science 5.3 GLM, GAM and more | Interpretable M...