Comments (3)
The code was already adjusted two months ago:
from adjustText import adjust_text
housetasks = pd.read_csv(HOUSE_TASKS_CSV, index_col=0)
ca = prince.CA(n_components=2)
ca = ca.fit(housetasks)
ax = ca.row_coordinates(housetasks).plot.scatter(x=0, y=1, figsize=(6,6))
ca.column_coordinates(housetasks).plot.scatter(x=0, y=1, ax=ax, c='C1')
texts = []
for idx, row in ca.row_coordinates(housetasks).iterrows():
texts.append(plt.text(row[0], row[1], idx))
for idx, row in ca.column_coordinates(housetasks).iterrows():
texts.append(plt.text(row[0], row[1], idx, color='C1'))
adjust_text(texts, only_move={'points':'y', 'texts':'y'})
plt.tight_layout()
plt.show()
from practical-statistics-for-data-scientists.
@willrod369 Thanks for the feedback, they may have deprecated that parameter since that code was written. I can't speak for @gedeck but you're more thank welcome to make a pull request?
from practical-statistics-for-data-scientists.
Makes sense. I downloaded the repo 4/19.
Thanks!
from practical-statistics-for-data-scientists.
Related Issues (20)
- Errors and Questions in Ch5, 6, 7 HOT 3
- Again in Ch 5, 6, 7 HOT 3
- Incorrect variable reference Chi2 (Chapter 3 page 127) HOT 1
- Ch 3. Line 77 in Python Code HOT 2
- Ch. 2 - R Code Data and Sampling Distributions Lines 35, 36 HOT 1
- Pull request HOT 16
- Python Jupyter Notebook program output is different from what is shown there HOT 2
- Python code for Chapter 3 - Web Stickness - TypeError in the original code HOT 5
- Different histogram under the same number of bins HOT 2
- perm_fun use of set() HOT 2
- Possible Considerations on moving R into conda environment for consistency HOT 3
- Enable github CI for pull requests
- Add R build to CI HOT 3
- ζ°΄ζΈγγ
- Resampling in chi square test HOT 1
- Adjust code to changes in Python packages
- Anaconda - ResolvePackageNotFound HOT 2
- Statistics
- chi-square, resampling approach HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from practical-statistics-for-data-scientists.