Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this error while loading the custom data. #367

Open
sbagadhi opened this issue Sep 21, 2020 · 1 comment
Open

getting this error while loading the custom data. #367

sbagadhi opened this issue Sep 21, 2020 · 1 comment

Comments

@sbagadhi
Copy link

sbagadhi commented Sep 21, 2020

Traceback (most recent call last):

File "/opt/anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in
d=pd.read_csv('/users/sbagadhi/downloads/script.csv',converters={'paragraphs':literal_eval})

File "/opt/anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py", line 685, in parser_f
return _read(filepath_or_buffer, kwds)

File "/opt/anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py", line 463, in _read
data = parser.read(nrows)

File "/opt/anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py", line 1154, in read
ret = self._engine.read(nrows)

File "/opt/anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py", line 2048, in read
data = self._reader.read(nrows)

File "pandas/_libs/parsers.pyx", line 879, in pandas._libs.parsers.TextReader.read

File "pandas/_libs/parsers.pyx", line 894, in pandas._libs.parsers.TextReader._read_low_memory

File "pandas/_libs/parsers.pyx", line 971, in pandas._libs.parsers.TextReader._read_rows

File "pandas/_libs/parsers.pyx", line 1081, in pandas._libs.parsers.TextReader._convert_column_data

File "pandas/_libs/parsers.pyx", line 2229, in pandas._libs.parsers._apply_converter

File "/opt/anaconda3/lib/python3.7/ast.py", line 46, in literal_eval
node_or_string = parse(node_or_string, mode='eval')

File "/opt/anaconda3/lib/python3.7/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)

File "", line 1
['Rounding numbers Objectives rounding off the numbers to its nearest place values Rounding is a way of simplifying numbers, to make them easier to understand or work with. Rounding can be used when an exact number isn't needed, and an approximate answer will do. For example: According to the census bureau, the population of the United States is, 285,868,158 Although this number is precise, it is cumbersome and difficult to remember We could use 200,000,000 but there is a better estimate. .Let s learn rounding to roundoff the whole-numbers STEP1: For example, take the number 2,460,257 if we want to round a number to the nearest ten, the round off digit is the number in the tens' place If we want to round a number to the nearest hundred, the round off digit is the number in the hundreds' place suppose If we want to round a number to the nearest ten thousandse round off digit is the number in the thousands' place STEP2: Look at the number to the right of the round off digit. if the number is less than 5 don t change the round off digit if the right of the round off digit is greater than equal to 5, then add one to the round off digit, else don't change in this example the number right to round off digit that is 0 which is less than 5, so don t change the value of digit STEP3:Change all the digits to the right of the round off digit to zeros therefore the rounding off the number 2,460,257 is rounded to nearest ten thousands place s 2,460,000 Round a number to its nearest 1000.Let us take one example:273,951 STEP2: 273951 273951 Here 9 > 5, then add one to the round off digit.That is, 3 + 1 STEP3:Change all the digits to the right of the round off digit to zeros.Therefore, the number is,274000 therefore the rounding off the number 273,951 to its nearest thousands place to 274,000 Here are some examples of rounding off to the nearest tens place with whole numbers: 22,333 is rounded off to, 22,330, because the 3 in the tens place is < 5 567, 987 is rounded off to, 567,990 because the 7 in the tens place is > 5 Here are some examples of rounding off to the nearest ten-thousands place with whole numbers: 666,009 is rounded off to, 670, 000, because the 6 in the thousands place is > 5. 7,981,987 is rounded off to, 7,980,000, because the 1 in the thousands place is < 5. Here are some examples of rounding off to the nearest millions place with whole numbers: 31,666,009 is rounded off to 32,000,000, because the 6 in the hundred-thousands place is > 5. 27,981,987 is rounded off to 28,000,000 because the 9 in the hundred-thousands place is > 5.’]
^
SyntaxError: invalid syntax

@sbagadhi
Copy link
Author

@andrelmfarias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant