antonmu / census2020 Goto Github PK
View Code? Open in Web Editor NEWVisualizing 230 years of US Census data
License: Creative Commons Attribution 4.0 International
Visualizing 230 years of US Census data
License: Creative Commons Attribution 4.0 International
I received a Value Error when attempting to run the code. Any Suggestions?
ValueError Traceback (most recent call last)
in
3 Census[key] = Census[key][['State','Population']]
4 Census[key].loc[:,'Population']=Census[key].loc[:,'Population'].apply(
----> 5 lambda s: int(re.sub(r'[.*','', str(s)).replace(',','')))
6 display(Census[key].head(8))
~\Anaconda3\lib\site-packages\pandas\core\series.py in apply(self, func, convert_dtype, args, **kwds)
3846 else:
3847 values = self.astype(object).values
-> 3848 mapped = lib.map_infer(values, f, convert=convert_dtype)
3849
3850 if len(mapped) and isinstance(mapped[0], Series):
pandas_libs\lib.pyx in pandas._libs.lib.map_infer()
in (s)
3 Census[key] = Census[key][['State','Population']]
4 Census[key].loc[:,'Population']=Census[key].loc[:,'Population'].apply(
----> 5 lambda s: int(re.sub(r'[.*','', str(s)).replace(',','')))
6 display(Census[key].head(8))
ValueError: invalid literal for int() with base 10: '101130]'
Saludos a todos,
Me gustaría aprender como hacer un gráfico de carrera de barras en Rstudio. He tratado de seguir algunos que se encuentran en la web pero siempre me sale algún error. Me gustaría tener uno mas sencillo y mas especifico de como hacer un bar chart race.
Algunos de los que he visto son estos:
https://tacosdedatos.com/como-hacer-carrera-de-barras-en-r
@emilykuehler
https://www.emilykuehler.com/portfolio/barchart-race/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.